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

Post Code or street address to Long/Lat?

0

I would like to from an address generate a long/lat is this possible?

I can see it's possible to do the opposite Reverse Geocoding / Address lookup.

asked 11 Nov '10, 17:20

Haniff's gravatar image

Haniff
1111
accept rate: 0%


2 Answers:

1

Sure that is possible if the address is mapped. One possible way of doing it is using nominatims "search" function. For documentation how to do that see the wikipage on nominatim. If only the streetname is mapped but without house numbers your lat/lon might be off a bit.

answered 12 Nov '10, 06:56

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

0

Possibilities for reverse geocoding might be given by the use of Nominatim. See there the section about "Reverse Geocoding / Address lookup".

But you want the coordibates of a certain address? Then you have to meka sure that the given address is a certain point like a node in the OSM data. What coordinates should be given when no housenumbers are present in the OSM data, or the address is tagged to a (big) building?

answered 11 Nov '10, 18:25

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

edited 11 Nov '10, 18:29

Source code available on GitHub .