Ask HN: Best IP Geolocation Database or Service?
Hey HN, I'm building an app for a Client and I need a good database or service that lets me determine a users location based on their IP address. Right now I'm considering Maxmind GeoIP but I'd like to have something better, just can't seem to find it. I don't care if its free or cost money, the main thing is that its highly relaiable, regularly updated, and maintained.
Thanks in advance!
At my company we use IP2Location (http://www.ip2location.com). They offer several databases with different data (from basic "IP-address to country" to quite comprehensive ones). You can get a DB as a CSV or binary file (in latter case the driver is required which also costs some money). The database is updated almost every month and you get free downloads.
In my home project I wanted to save some money so just bought the CSV file, wrote a tool that converts it to a binary representation (~1GB) and a driver (.NET) that can find records very quickly.
http://www.datasciencetoolkit.org/ may be worth a shot.
Don't know how accurate the data is or how often it's updated, but we've used it before without any issues. I will note though that the geolocation functionality was a secondary piece in our software, so we weren't really concerned with accuracy of the data.
Is this just one of those "dumb customer requirements"? At least for me, geocoding-by-ip gives a result that is wrong by about 250 miles.
Why not just use HTML5 geolocation? You'll get much better results if the user grants you permission, and if you don't get that permission, you probably shouldn't know the location anyways... HTML5 geolocation is really easy to use.
If you're writing it in PHP, you could install the GeoIP PECL extension (http://www.php.net/manual/en/book.geoip.php).
If not just use Maxmind GeoIP. I've never heard any complaints and its updated frequently.
We use http://www.maxmind.com for our custom abuse detection system (which is using geolocation as a signal).
Check out http://www.wipmania.com/