Skip to content

Instantly share code, notes, and snippets.

@derwiki
Created June 18, 2015 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derwiki/57502f5cde8200c2f406 to your computer and use it in GitHub Desktop.
Save derwiki/57502f5cde8200c2f406 to your computer and use it in GitHub Desktop.
[5] pry(main)> geoip.city('8.18.218.175')
=> #<struct GeoIP::City
request="8.18.218.175",
ip="8.18.218.175",
country_code2="US",
country_code3="USA",
country_name="United States",
continent_code="NA",
region_name="",
city_name="",
postal_code="",
latitude=38.0,
longitude=-97.0,
dma_code=0,
area_code=0,
timezone=nil,
real_region_name=nil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment