I want to select all polygons with
tourism=camp_site and tourism=caravan_site without the key 'sanitary_dump_station'
but where a node is located inside the boundary with the tag
amenity=sanitary_dump_station
I tried different approaches and ended up with this:
[out:json][bbox:{{bbox}}][timeout:120];
node ["amenity"="sanitary_dump_station"] ->.a;
.a is_in ->.b;
way(pivot.b)->.x;
way.x["tourism"~"caravan_site|camp_site"][!"sanitary_dump_station"]->.z;
(.z; .a; );
out geom;
>;
out skel qt;
In the results I find some campings without the key 'sanitary_dump_station', eg.: https://www.openstreetmap.org/way/116540519#map=19/50.22837/1.61213, while there is a node within its boundaries (https://overpass-turbo.eu/s/GRl)