mixdown-geolocation
v0.2.1
Published
Geolocation server / service for looking up user locations
Downloads
5
Readme
mixdown-geolocation
Geolocation server / service for looking up user locations.
Install
What you will need to get started
Maxmind GeoIP API for C/C++ - http://www.maxmind.com/app/c
MacOS Homebrew Install
$ brew install geoip
CentOS Install
$ sudo yum install GeoIP-devel.x86_64
License
Update the configuration to use your license
config lives in either /usr/local/etc/GeoIP.conf or /usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf depending on install.
/usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf
UserId ####
LicenseKey YOULICENSEKEY
ProductIds 133
Run the following to pull the latest db from maxmind
Update maxmind ip database
~$ /usr/local/bin/geoipupdate
/usr/local/Cellar/geoip/1.4.8/share/GeoIP/GeoIPCity.dat can't be opened, proceeding to download database
Updating /usr/local/Cellar/geoip/1.4.8/share/GeoIP/GeoIPCity.dat
Updated database