Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maxmind - Latitude & Longitude from Zip Code

Tags:

c#

geospatial

I'm using Maxmind's free DAT file to calculate latitude and longitudes from IP addresses - that much works fine and was very straightforward to implement.

However, I've run into an issue where I would like the user to enter their zipcode and automatically calculate the latitude and longitude for that zipcode.

Does anyone have any experience doing this with Maxmind's database? If so, how did you achieve it.

Thanks in advance

JP

like image 377
JP. Avatar asked Aug 10 '10 17:08

JP.


1 Answers

I use MaxMind's GeoLite City database, in CSV format. The DAT format is great for IP geolocation, but the CSV can be imported into any relational database for quick zip code lookups. It contains most of the US zip codes, Canada and many other countries' postal codes mapped to their corresponding city and latitude/longitude.

If you need additional precision, buy their commercial database.

like image 133
Mauricio Scheffer Avatar answered Oct 03 '22 18:10

Mauricio Scheffer