Used to map IP addresses to geographical locations.

This modules uses the freely available MaxMind databases for the IP mapping. The database is updated automatically.

For downloading the database you need a License Key from MaxMind. The License Key can be generated after registering with MaxMind.

The obtained license key can be configured in the erlang.config file with:

{locus, [
    {license_key, "YOUR_LICENSE_KEY"}

The above license key can be overruled in the zotonic.config file using the maxmind_license_key key.

Edit on GitHub



Maps an IP address to a country using the MaxMind GeoIP2 database.


Maps an IP address to information about that country.