Geolocation — the concept of figuring out where your user is from — is one of those things that always sounded simple, but that I had never actually done. The fact is, no client had ever asked me for it.
Then, today, one did. So, I went looking around, and I found MaxMind. I’m absolutely tickled with it.
It’s $20 for 50,000 requests, with no expiration. You call a URL, with your license key and the IP in the querystring, and you get back a short, comma-delimited string with country, state, city, lat, and lon.
I had this up and running in 15 minutes with zero human contact. There’s more information, if you want to pay for access to additional databases. See all the info they can find on your IP address.
This is an example of a small, fast, simple service that I will gladly pay for. The world needs more of these.
We used MaxMind at my last full-time gig. Great service, great product. And like you, we had it up and running in no time.
they had my area codes wrong, my city wrong, my lat 'n long wrong, they had the isp's city wrong too, and the zip code wrong
Location from IP address just fails way to often that I'm surprised that it is even offered as services anymore. Like hjmler, all my info was incorrect - I am in the Portland Oregon area.
With the caveats about IP address mentioned above, thought I'd mention Google's free new JavaScript API that lets you grab lat, long, city, country, region info based on the visitor's IP address: http://code.google.com/apis/ajax/documentation/#ClientLocation
Yahoo also has an interesting free REST API for geolocation, although it doesn't offer resolution based on IP address: http://developer.yahoo.com/geo/
We are using Web API from IP2Location.com. They are better in handling hjmler and Eric's concerns.
The above comment appears to be from IP2location itself, promoting their own services, if you click on "Tim" you'll go to ipaddressguide.com, which is owned by the same company that ip2location is.