GeoLocating IP addresses for free
I found out that MaxMInd provides a GeoLiteCity – a free(!) database for geolocating of IP addresses. You get to download a binary database (24MB) (monthly updated) and GPL libraries to perform lookups. They offer libraries for serveral languages including PHP, Perl, Python and Ruby.
I must say I am really impressed, a company offering such a database for free with really high quality tools (e.g., the bindings use auto{make|conf} tools and are really easy to install).
Where’s the catch? Well, they say that the database offers 60% accuracy – the commercial database ($370 plus $90 a month) offers 75% accuracy, plus more detailed info (ISP, postcode, area codes, etc). Anyways, it’s more than enough for my website statistics. Now displaying my visitors using GoogleMaps is a one evening work
Here’s a sample output of my DSL IP address and my server:
./geoiplookup 217.162.130.229
GeoIP Country Edition: CH, Switzerland
GeoIP City Edition, Rev 1: CH, 25, Langnau, (null), 47.283298, 8.533300, 0, 0
GeoIP City Edition, Rev 0: CH, 25, Langnau, (null), 47.283298, 8.533300
./geoiplookup tadek.pietraszek.org
GeoIP Country Edition: DE, Germany
GeoIP City Edition, Rev 1: DE, 02, Gunzenhausen, (null), 49.099998, 10.750000, 0, 0
GeoIP City Edition, Rev 0: DE, 02, Gunzenhausen, (null), 49.099998, 10.750000
Well done, guys and a really good marketing idea.
June 22nd, 2006 at 6:39 pm
[...] http://tadek.pietraszek.org/blog/2006/02/26/geolocating-ip-addresses-for-free/ Posted by knewter Filed in Uncategorized, ruby [...]
September 15th, 2007 at 7:03 am
This is very helpful. Thanks!