No commit activity in last 3 years
No release in over 3 years
GeoIP provider for geokit gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1.1
~> 1.5.0
 Project Readme
== GeoKit GeoIP Provider

=== Install
gem install DefV-geokit-geoip-provider

=== Setup

==== Rails
config.gem 'DefV-geokit-geoip-provider', :lib => 'geokit-geoip-provider'

Download and unzip a recent GeoCity database from http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

Add GeoIp as a ip_address provider:

GeoKit::Geocoders.ip_provider_order.unshift :geo_ip
GeoKit::Geocoders.geo_ip_database = RAILS_ROOT + "/lib/ext/GeoLiteCity.dat" # or the path you downloaded your geocity database

And you can start using the GeoIp geocoder