Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Geo Ip

Geo Ip

A simpler API the GeoIP country. Depends on the compile C API.

  • http://www.maxmind.com/download/geoip/api/c/

Example

GeoIp::lookup('1.2.3', :name) # => "United States" 
GeoIp::lookup('1.2.3', :code) # => "US"

Copyright© 2007 Joshua Peek, released under the MIT license


Homepage: http://projects.wh.joshpeek.com/browser/plugins/geo_ip