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

Finding nearest bounding way of node

0

Hello,

I am trying to develop a query that returns the nearest bounding way of a node.

For example, I pass in Node 5212949758, and get back Way 30612528.

Is this possible with OSM?

Thank you!

asked 01 Jul '19, 06:30

newto_osm's gravatar image

newto_osm
11112
accept rate: 0%

edited 01 Jul '19, 06:39


One Answer:

0

let's assume that the nearest building is closer than 40, the first one should be the best one. ( node(4190985791); way(around:40.0); ); out geom;

answered 20 Mar '20, 14:30

bendoSK's gravatar image

bendoSK
1
accept rate: 0%

edited 20 Mar '20, 14:31

Source code available on GitHub .