Using Free GeoIP databases, transfer to redis database for api query
GeoLite2 databases are free IP geolocation databases comparable to, but less accurate than, MaxMind’s GeoIP2 databases. The GeoLite2 Country and City databases are updated on the first Tuesday of each month. The GeoLite2 ASN database is updated every Tuesday.
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com