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

how to query a way containing a specific way overpass api?

0

I have this query to get hot_water_tanks:

[out:json][timeout:85];

(

  node["man_made"="hot_water_tank"]({{bbox}});
  way["man_made"="hot_water_tank"]({{bbox}});

);

out body;
>;
out skel qt;

and here to get industrial building or landuse.

[out:json][timeout:85];

(

node["landuse"="industrial"]({{bbox}});
  way["landuse"="industrial"]({{bbox}});
rel["landuse"="industrial"]({{bbox}});


);

out body;
>;
out skel qt;

How can i get only landuse=industrial where there is a hot_water_tank?

asked 04 Oct '16, 14:56

JsonKh's gravatar image

JsonKh
26224
accept rate: 0%

edited 04 Oct '16, 15:48

Not sure how to do this in overpass, but you could easily do this within a GIS tool like QGIS.

(06 Oct '16, 09:08) joost schouppe

Source code available on GitHub .