Bogdan Popa <bogdan@defn.io>
This library provides utilities for working with MaxMind’s geolocation databases. It lets you look up information about where an IP address is located.
To use this library, you’re going to need to download one of MaxMind’s V2 databases. The library has been tested against their free "GeoLite2" databases, but should work with their enterprise DBs as well.
Once you’ve downloaded one of the databases, you can read it using make-geoip . That’ll return a structure that you can use to perform lookups using geoip-lookup . For example:
procedure
( make-geoip path)→geoip?
path:path-string?
procedure
( geoip-metadata geoip)→(hash/c string? any/c )
geoip:geoip?
Added in version 0.2 of package geoip-lib.