Small server written in Go that responds with GeoIP data for given IP in chosen format (xml/json/html)
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
Development environment built using https://github.com/FreakyDazio/vagrant-golang.
git clone git@github.com:3fs/geoip-lookup.git
.cd geoip-lookup
.vagrant up
to start development environment.vagrant provision
to add all dependencies.vagrant ssh
.cd /vagrant
.. build.sh
.geoip-lookupd
.geoip-lookupd 3333
.Any IP can be queried via URL: http://192.168.33.10:8080/{IP}/{format}
.
Response can be returned in HTML, JSON or XML format
If IP is not provided in URL, IP from RemoteAddr is used (visitor's IP).