Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Discostu36 opened this issue Nov 26, 2023 · 1 comment
Open

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

Discostu36 opened this issue Nov 26, 2023 · 1 comment

Comments

@Discostu36
Copy link

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
Copy link
Contributor

mmd-osm commented Nov 27, 2023

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants