Reverse geo location using OpenStreetMap

vishal picture vishal · Dec 25, 2009 · Viewed 38.9k times · Source

I have used OpenStreetMap in my ongoing website. I have developed website using PHP. My requirement is to get ADDRESS based on Geo Location(Latitude & Longitude). Is there any OpenStreetMap API available to get location info based on Lat/Lon?

Thanks, Vishal Parmar

Answer

gravitystorm picture gravitystorm · Dec 31, 2009

There are multiple reverse geocoding APIs available for OpenStreetMap (since the data is open-source, anyone can build one). The two that I would recommend you investigate further are:

  1. Nominatim, run by a member of the OSM community as a volunteer project. Reverse Geocoding documentation
  2. CloudMade Geocoding, run as a commercial service. Reverse Geocoding documentation (at the bottom)

Of the two, I would recommend Nominatim. If you are building a large service and are generating lots of requests, you can even run your own copies of nominatim on your own servers.