My requirement is to get the Latitude and Longitude value for a particular zip code. Is there any API that I can use to get these information. As I am working in a company so the requirement is coming for our team is to find the latitude and longitude value for a particular zip code. So we were thinking to build a new service for this. So what reliable data source we can use to get these information back if we are passing zip code to our service. Or what can be the best approach that I can propose to my PM about this requirement. Any pointers will be appreciated.
Just to add, that data source should have all the zip codes, latitudes and longitude in a world. Not that much accurate but mostly it should cover around more than 95% coverage.
Update
I did some research and I found that I can use Maxmind data for this but Maxmind data doesn't cover all the zip code list.
To get the latitude of the address in cell B2, use the formula = GetLatitude(B2) To get the longitude of the address in cell B2, use the formula = GetLongitude(B2) To get both the latitude and longitude of the address in cell B2, use the formula = GetCoordinates(B2)
You can get postal code by using Google map's API. You can get the postal code from the json data returned by the API. Provide the lat lng to LatLng constructor.
You can download zip code and corresponding lat and long values for different countries from here: (this is open source data and free of charge)
http://download.geonames.org/export/dump/
You can then import the data into your database and query it.
Hope this helps.
Please have a look at Google Geocoding API and at Yahoo! PlaceFinder.
Both of them have Geocoding features, which is exactly what you want (obtaining map (latitude, longitude) coordinates from partial or full addresses).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With