2-part package for loading GeoLite2 Database to redis and working with it from your application.
Contains
Contains types + lookup function
- login here
- download database (you need 2 files: GeoLite2-City-Blocks-IPv4.csv and GeoLite2-City-Locations-.csv)
- install redis
- run
geoip-redis-exe -r 'redis://user@localhost:6379/1' -b './data/GeoLite2-City-Blocks-IPv4.csv' -l './data/GeoLite2-City-Locations-ru.csv' -d 'geoip_ipv4'
on host where you need database - run your app (which use
./lib
i guess)