Since the deprecation of, then removal of, the geoiplookup port and the removal by maxmind of the legacy databases, I've been looking for a "drop-in" replacement C program for the new GeoLite2 formatted databases to no avail. So, yesterday, I decided to write my own.
$ ./geoiplookup2 1.1.1.1...