{:geolix, "~> 2.0"},
{:geolix_adapter_mmdb2, "~> 0.6.0"},
config :geolix, databases: [
%{
id: :city,
adapter: Geolix.Adapter.MMDB2,
source: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=LICEN_SEKY&suffix=tar.gz"
},
%{
id: :country,
adapter: Geolix.Adapter.MMDB2,
source: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=LICEN_SEKY&suffix=tar.gz"
}
]
Geolix.lookup("45.50.161.38")