Split up overpass turbo request


I have encountered a problem with requesting a lot of data from specific time points. I am collecting data for the number of supermarkets in each region in Germany, for the last 6 years. I’ve done this for gas stations already, and it worked fine, requesting each year at once. For supermarkets only 2022 worked, for the other years the number of requests is too high and the request cancels.

[out:csv( "ref:nuts:3", name, total, nodes, ways, relations )][date:"2022-07-01T00:00:00Z"][timeout:9000];

//All NUTS 3 regions in Germany

// Count the supermarkets in each area
  // Collect all Nodes, Ways and Relations wth amenity=supermarket in the current area
  ( node(area.regio)[shop=supermarket];
  make count "ref:nuts:3" = regio.set(t[ "ref:nuts:3"]),
             name = regio.set(t["name"]),
             total = count(nodes) + count(ways) + count(relations),
             nodes = count(nodes),
             ways = count(ways),
             relations = count(relations);

I’m only switching the date on top of the code.

Is there any way to split up the request into two? Or anything else I can do?

2 posts - 2 participants

Read full topic

Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/split-up-overpass-turbo-request/105287