See the copyright information in the file named COPYRIGHT
.
require 'geoip'
geoip.COUNTRY
geoip.COUNTRY_V6
geoip.REGION_REV0
geoip.REGION_REV1
geoip.REGION
=geoip.REGION_REV1
geoip.CITY_REV0
geoip.CITY_REV1
geoip.CITY
=geoip.CITY_REV1
geoip.ORG
geoip.ISP
geoip.PROXY
geoip.ASNUM
geoip.NETSPEED
geoip.DOMAIN
geoip.STANDARD
geoip.MEMORY_CACHE
geoip.CHECK_CACHE
geoip.INDEX_CACHE
geoip.MMAP_CACHE
geoip.ISO_8859_1
geoip.UTF8
TODO: Document further. Meanwhile, see tests.
$ sudo apt-get install geoip-database # GeoLite Country only
$ sudo apt-get install libgeoip-dev
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://www.maxmind.com/app/c