Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

GeoIP provider for geokit gem.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README
Octocat-spinner-32 geokit-geoip-provider.gemspec
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
Something went wrong with that request. Please try again.