I need to query the Overpass API for some data that comes down to the question:
Give the set of nodes that is not contained (in spatial terms) in a set of areas (given by closed ways).
I looked into Overpass documentation and on the wiki (https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Map_way/relation_to_area_(map_to_area) and https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example), but I fail to see how to use area
, and other query methods can make my query.
The areas (residential areas): https://overpass-turbo.eu/s/SgN
The points (place
s): https://overpass-turbo.eu/s/SgQ
My best try that doesnt work (https://overpass-turbo.eu/s/SgO):
area["landuse"="residential"]({{bbox}})->.searchArea;
node["place"](area.searchArea)->.a;
node["place"]({{bbox}})->.b;
(.b; - .a;);
The entire query can be scoped to bbox
.