Project

ipgeo

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A client for communicating with an IPGeo server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

IPGeo Ruby Client

A client for looking up IP locations from a IPGeo Server.

Usage

client = IPGeo::Client.new('ipgeo.domain.com')
if result = client.lookup('185.22.208.2')
  result.country        #=> "GB"
  result.country_name   #=> "United Kingdom"
  result.city           #=> "Poole"
  result.latitude       #=> 51.4964
  result.longitude      #=> -0.1224
  result.geoname_id     #=> 2635167
end