Geolocation server / service for looking up user locations
Geolocation server / service for looking up user locations.
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
$ sudo yum install GeoIP-devel.x86_64
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.confUserId ####LicenseKey YOULICENSEKEYProductIds 133Run 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 databaseUpdating /usr/local/Cellar/geoip/1.4.8/share/GeoIP/GeoIPCity.datUpdated database