tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
891 stars 129 forks source link

Query returns 0 results for me but many for others #673

Open Discostu36 opened 7 months ago

Discostu36 commented 7 months ago

If I run this query:

https://overpass-turbo.eu/s/1DYQ

I get zero results. It doesn't matter if I use Firefox or Edge. If someone else runs the same query, they do get results.

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“vending=food in Germany”
*/
[out:json][timeout:25];
// fetch area “Germany” to search in
{{geocodeArea:Germany}}->.searchArea;
// gather results
nwr["vending"="food"](area.searchArea);
// print results
out geom;

request:

{
    "data": "/*\nThis+has+been+generated+by+the+overpass-turbo+wizard.\nThe+original+search+was:\n“vending=food+in+Germany”\n*/\n[out:json][timeout:25];\n//+fetch+area+“Germany”+to+search+in\narea(id:3607440724)->.searchArea;\n//+gather+results\nnwr[\"vending\"=\"food\"](area.searchArea);\n//+print+results\nout+geom;"
}

answer:

{
  "version": 0.6,
  "generator": "Overpass API 0.7.61.5 4133829e",
  "osm3s": {
    "timestamp_osm_base": "2023-11-26T21:29:58Z",
    "timestamp_areas_base": "2023-11-26T20:25:28Z",
    "copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
  },
  "elements": [

  ]
}

If I change the query by removing the geolocation part, I do get results:

https://overpass-turbo.eu/s/1DYW

I don't understand what is happening. There are nor errors in the console.

mmd-osm commented 7 months ago

It seems the Nominatim lookup used for {{geocodeArea:Germany}} is returning this relation: https://www.openstreetmap.org/relation/7440724 🧐

You need to report this with Nominatim, really. Somehow their search results seem to be off at times.

As an alternative, here's a query without Nominatim lookup, which works just fine:

[out:json][timeout:25];
rel[boundary=administrative]["ISO3166-1"="DE"];map_to_area -> .searchArea;
nwr["vending"="food"](area.searchArea);
out geom;