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

User can select neighborhood data through a suggestion box

0

Hi,

I am building an app that needs an user to select a preferred neighborhood in US through a suggestion box. Most likely we are NOT going to use maps. From this selection I need a geo location using which my searches will be executed.

By default to start with I will retrieve user's current location through geo location api and will need to fetch a corresponding address from OSM using this location. In absence of geo location I will use ip based location / address detection.

Can I achieve this with some OSM api or even a data set available (preferred). We are inclined to use lucene's geo spatial searches to achieve this.

Any help will be highly appreciated.

thanks..

This question is marked "community wiki".

asked 17 Mar '12, 11:19

jdevil's gravatar image

jdevil
11113
accept rate: 0%


One Answer:

0

You can try nominatim. It is a software for geocoding and reverse geocoding in either xml or json formats. You can run your own instance or use the instances at OpenStreetMap or MapQuest depending on the trafic of your service.

answered 17 Mar '12, 14:27

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

Source code available on GitHub .