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

How to get nodes into a closed way in a single Overpass query

0

For example: I have the way(52360447). It is the building. The are several nodes (organisations) into this building. I was tried to get this nodes by next query: [timeout:10][out:json]; (way(52360447)->.x;node(around.x:10)['name'];); out tags geom;

But, result this query has one wrong organisation from a neighboring building. And I understand why! How can I get those nodes (organisations) only from this buildings(way)?

asked 14 Nov '16, 10:16

Denis_giswork's gravatar image

Denis_giswork
11112
accept rate: 0%

take a look at https://help.openstreetmap.org/questions/47548/overpass-ql-return-all-parks-with-playgrounds-within-polygon

I guess the feature is still not available on the main public servers, I didn't check if it is still available on the dev server mentioned in the answer.

(14 Nov '16, 18:35) maxerickson

Thanks maxerickson! I had seen this link. But those variants don't work for my example. I don't know why( This variant must be working (in my opinion): [bbox:{{bbox}}] [out:json][timeout:1800];

way(52360447); map_to_area->.a; ( node(area.a); ); out; But no((( Maybe you're right! It's not available yet...

(15 Nov '16, 06:24) Denis_giswork

Source code available on GitHub .