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

Can OpenStreetMap be used for creating a “radius search” feature on an internal web-based app?

1

Hi everyone, I am just wondering if there is a way to use OSM for creating a radius search feature on a web-based app. The idea would be to input a City and a State and a predetermined "radius" value (measured in miles) to pop up results (basically rows) containing Cities and States within the radius of the initial City and State defined initially. So if I put in Los Angeles, CA; and a radius of 100miles, I would like for the app to look up cities within that area.

Thanks!

asked 14 Sep '12, 18:18

Sergiu's gravatar image

Sergiu
16111
accept rate: 0%


One Answer:

0

If I am not wrong this feature is at the OverpassAPI

Do a search there for the parameter "around" to get results limited by a radius.

But before, get familiar how to use OverpassApi at all, it seems not to be an easy toy for fresh OSM beginners :-)

answered 15 Sep '12, 14:53

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .