Overpass API : Supermarkets - slow queries
I have two requests to get supermarkets within a country but both are slow and I'm asking myself if there is a way to improve them.
The first query is used to get supermarkets in France only, within a radius of 2 kilometers around the coordinates provided :
[out:json][timeout:25];
area(3602202162)->.searchArea;
(
node["shop"="supermarket"](around:2000,48.8534,2.3488)(area.searchArea);
nwr["shop"="supermarket"](around:2000,48.8534,2.3488)(area.searchArea);
);
out;
(In this example, the coordinates correspond to the location of Paris).
For the second request, I want to obtain supermarkets in France only as well but sorted by brand and city.
Currently, I use the query below to get all the supermarkets in a given city (but it's not limited to France). After my request, I sort the results by brand in my code.
[out:json][timeout:25];
area["name"="Paris"]->.RESULTS;
(
node["shop"="supermarket"](area.RESULTS);
nwr["shop"="supermarket"](area.RESULTS);
);
out;
Is it possible to improve both queries and make them faster? I'd also like to limit the second query to France, and why not, if it's more efficient sort the results by brand with the API and not with my code.