GeoIP2 expanded fields: continents and country registered
2023/07/17
Base platform is fedora 38
sudo dnf install -y libmaxminddb libmaxminddb-devel
sudo dnf install -y geolite2-city geolite2-country geolite2-asn
download geolite2++, unpack
ccmake . to configure
make
Here are the various APIs to GeoIP2. And some idea of the continental slices. Background IP Geolocation Data for schema fields and metadata.
For the C++ API, use GeoLite2++ and here are the docs. Just use the pre-built binary from rizal.
To purchase a one-time GeoIP2 City-level database in binary format from MaxMind, go here. Stash the updated files in /usr/share/GeoIP.
The source interface is in the alpha60 file “a60-geo-maxmind-2.h”, and uses the following databases directly:
“/usr/share/GeoIP/GeoLite2-Country.mmdb”
“/usr/share/GeoIP/GeoLite2-City.mmdb”
“/usr/share/GeoIP/GeoLite2-ASN.mmdb”