Sha256: e84f7fa80687c1993411e4ef79ae63a5f55bcc8c15a18fa2f8198f97d1a56a00

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

= geolocation_city

== Requirements

Download the {GeoIP C API from MaxMind}[http://geolite.maxmind.com/download/geoip/api/c/], or install it via homebrew.

	brew install geoip

==== Updating the .dat file
	
Don't forget to include 'geolocation_city/rake_task' to your Rakefile.

	rake geolocation:update target=Test.dat

==== Getting localization from an IP

	require 'geolocation_city'
	geo = Geolocation::City.new('Test.dat')
	geo.from_ip('24.24.24.24')
	
== Copyright

Copyright (c) 2010 Iván Valdés (@ivanvc). See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ivanvc-geolocation_city-0.0.1 README.rdoc