potatosalad / erlang-geolite2data

Downloads and updates the GeoLite2 databases from MaxMind for Erlang and Elixir.
MIT License
2 stars 0 forks source link

Maxmind Geolite API no longer offered #2

Open Nicd opened 4 years ago

Nicd commented 4 years ago

According to this blog post the Maxmind Geolite databases are no longer offered behind the API, instead they require an account, so this can't be used to download them. I think this should be noted on the project README.

Nicd commented 4 years ago

After creating an account, you can generate permalinks to download the databases from and those can be configured for geolite2data I think, but I haven't tried it.

Nicd commented 4 years ago

The permalinks are of the format:

https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-<City/Country>&license_key=<API_KEY>&suffix=<SUFFIX>

The suffixes seem to be:

I did not get geolite2data working out of the box with either of these, presumably because it expects a single file.