0

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? – scai Dec 19 '16 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? – Sathish Dec 19 '16 at 15:45
  • By going through all nodes of the file and comparing their location. Alternatively better import the file into a spatial database. – scai Dec 20 '16 at 11:08
1

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. – Sathish Dec 21 '16 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.