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

Query area (e.g. power=plant) around coordinates

0

I've got a list of power plant locations.

How can I query the presence and id of a power=plant way around this location?

asked 23 May '18, 19:13

Druzhba's gravatar image

Druzhba
150111118
accept rate: 0%

Why does it not find BMW ?

[out:json][timeout:600];
(
way(around:300,51.404924,12.444895)["landuse"="industrial"];
);
out body;
>;
out skel qt;
(24 May '18, 18:25) Druzhba

That way is more than 300 metres away from the coordinates you're checking. You'll need to increase the "around" distance.

(24 May '18, 18:45) alester

Source code available on GitHub .