I have a node ID(Say Z) which will be in the road/way. How do I find the node IDs around this point Z in certain radius.
-
With an API or a local OSM file or a database?– scaiCommented Dec 19, 2016 at 11:36
-
I have a OSM file for a specific state as well. But how do I find the node IDs within certain radius using the information from OSM file?– SathishCommented Dec 19, 2016 at 15:45
-
By going through all nodes of the file and comparing their location. Alternatively better import the file into a spatial database.– scaiCommented Dec 20, 2016 at 11:08
Add a comment
|
1 Answer
When using the famous overpass-api, you can have a look at the "around" parameter.
See https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL for "around".
-
I tried to look at overpass API. It expects me to give me a tag so that I can look for specific information. (like bus_stop). I am looking for all the OSM ids in the road within a radius. I could not find a way to do it.– SathishCommented Dec 21, 2016 at 18:45