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

Finding closest lane to a node using python script

0

Is it possible to find the Way ID that is the closest to a Node (or a POI). I am trying to find the railway track id that is closest to a railway station node. The OSM data for station contains the coordinates in Lat-Long format. The data also includes the railway track in the form of 'way' and a series of node elements specifing the way. The intended process is thought to be done in python by making a series of parsing steps through the osm xml file.

How can a connection be established between the railway track passing through the given station node.

Thanks

asked 06 Nov '18, 14:35

user1894's gravatar image

user1894
11446
accept rate: 0%

edited 06 Nov '18, 14:41

Source code available on GitHub .