R
ry dahl
This is a library which provides a single function. The function takes
as input an IP address and it outputs a hash containing best-guess
geographical information (like city, country, latitude, and
longitude).
Actually this is only a Ruby binding to a C library which provides
this function. Also, you must download a large binary database with
all this mapping information. It is kindly provided free of charge by
MaxMind.com.
There are other attempts at providing this functionality in Ruby but
mine is very simple and fast.
http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.tgz
http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.gem
ry
as input an IP address and it outputs a hash containing best-guess
geographical information (like city, country, latitude, and
longitude).
Actually this is only a Ruby binding to a C library which provides
this function. Also, you must download a large binary database with
all this mapping information. It is kindly provided free of charge by
MaxMind.com.
There are other attempts at providing this functionality in Ruby but
mine is very simple and fast.
http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.tgz
http://s3.amazonaws.com/four.livejournal/20071026/GeoIPCity-0.0.1.gem
ry