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

nominatim returns only if all fields matched

1

Hi to all,

This is extented of the question nominatim-returns-only-if-query-exactly-matched-data.

Nominatim returns result, if all fields(street,city & state) are matched.

But I want to get result(geocode) for city with state when street not avail, and so on. Any solution for this issue?

Because we can't get geocode for most of street level address in OSM :( .

Sample: http://nominatim.openstreetmap.org/search?format=json&street=vengateswara%20street&city=chennai&state=tamilnadu

asked 29 Jan '16, 06:16

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 05 Feb '16, 10:10

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

I have problems understanding your question. At your "sample" there is no result returned. What do you expect and why? Is "Vengateswara Street" existing in the osm data?

(05 Feb '16, 10:11) aseerel4c26 ♦

One Answer:

2

Running an instance of https://github.com/komoot/photon (note there interactive demo currently seems to have issues, but the demo api works). Photon does a fuzzy search on Nominatim generated OSM data and in general gives good results.

answered 05 Feb '16, 15:27

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .