IPGeolocation

Remote, IP-Based Geolocation for everyone!
Documentation
Repository

IPGeolocation

Remote, IP-Based Geolocation for everyone!

Seriously, this gem gives you 3 different IP-location services as 1-liners. Example:

IPGeolocation.locate("12.345.678.90", :blogama)


That's all there is to it! And you get a bunch of information, especially from blogama's API.

FEATURES/PROBLEMS:

SYNOPSIS:

IPGeolocation.locate("74.125.45.100", :blogama)

gives

#<struct IPGeolocation::Location ip="74.125.45.100", 
country_code="US", country_name="United States", region_code="CA", 
region_name=nil, city="Mountain View", postal_code="94043", 
latitude="37.4192", longitude="-122.057">

Requirements

Installation

gem install ipgeolocation