The Maxmind GeoIP database is what most people are using. It's quite accurate, has good libraries for many languages, but it's proprietary and costs money.
(Starting an open source competitor is on my list of fun projects to do)
Are you looking for zip code accuracy or just country accuracy? or something in between?
If all you want is what country the IP is from then go to http://www.ip2location.com/ and look through the forums. You can find out how to do it yourself.
If you need really fine granularity you will need a for pay service.
15 comments
[ 5.1 ms ] story [ 38.3 ms ] threadAnd we like their simple "API" -- no icky SOAP, just a GET to a URL.
Good if you're not completely sure of how much geolocation will do for you or you don't want to spend a fortune.
never used them, just adding it to the list
(Starting an open source competitor is on my list of fun projects to do)
I haven't started using it yet, but they claim it offers only slightly less accuracy with access to all of their libraries.
If all you want is what country the IP is from then go to http://www.ip2location.com/ and look through the forums. You can find out how to do it yourself.
If you need really fine granularity you will need a for pay service.