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

Is there any way to use OSM geocoder and get the location of places in any part of the street, not only at the vertices?

0

Is there any way to use OSM geocode and get the location of places in any part of the street, not only at the vertices?

I'm using the OSM API geocoder, Nominatim.

asked 13 Aug '14, 14:11

cassia's gravatar image

cassia
1111
accept rate: 0%

edited 13 Aug '14, 19:22

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701


One Answer:

1

Nominatim will report the precise position of an address if this address is mapped in OpenStreetMap or if an additionally imported dataset like TIGER contains the address.

If the address is not mapped, then there is no way how Nominatim can report a precise position. In these cases it will usually report a street midpoint, not a vertex as you seem to assume.

The suggested method to get around this limitation is mapping more house numbers.

answered 13 Aug '14, 14:58

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

... also have a look at the OSM wiki about https://wiki.openstreetmap.org/wiki/Search_engines in general.

(13 Aug '14, 19:49) stephan75

Source code available on GitHub .