This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

area query not containing all elements I’d expect

0

Hi everyone,

I'm testing in Overpass Turbo with following command:

[out:json];
(node["amenity"="fast_food"](area:3600062484);
rel["amenity"="fast_food"](area:3600062484);
way["amenity"="fast_food"](area:3600062484);
);
out;

I do get results, but not all I'd expect from looking at the map. For example, I'd expect this node - which fulfills the amenity fast_food condition - to be in the area 3600062484 and therefore in the result set amongst others, which unfortunately it isn't.

What am I doing wrong?

Thankful for any help I can get here.

asked 10 Jul '17, 13:49

robmso's gravatar image

robmso
21112
accept rate: 0%


One Answer:

0

Running your query on the public overpass-turbo instance gives the expected results for me (Kebab TURM is returned).

I have a screen shot if necessary.

answered 10 Jul '17, 20:18

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

No need for a screen shot, I believe you - I just cannot replicate the result after testing again now. I assume by "the public overpass-turbo instance" you mean overpass-turbo.eu, which I also use (new to the topic in general, might be wrong here).

Interestingly, when I'm loading the same query as an URI against overpass-api.de ( http://overpass-api.de/api/interpreter?data=[out:json];(node%22amenity%22=%22fast_food%22;rel%22amenity%22=%22fast_food%22;way%22amenity%22=%22fast_food%22;);out; ), I do get a more complete result, as it seems (contains the node used as example, at least).

Since I'll be using that way to access the data for my task, the behavior is acceptable to me - I just would have liked to test queries in Overpass Turbo and do not quite understand what makes my results different to e.g. yours.

(10 Jul '17, 20:33) robmso

yes, overpass-turbo.eu

Really didn't do anything special, just a C&P of your query and then "run".

(10 Jul '17, 20:50) SimonPoole ♦

Source code available on GitHub .