in reply to IP Lookup Tables
What might help if you *do* have a local postgres database, is App::geoip, a tool that uses GeoIP2 data from MaxMind ...
(note that you need a free MaxMind account for which you need te enter the data in ~/.config/geoip. Your own location is optional, but when available, the tool can show the distance)
$ cpan App::geoip $ echo "create database geoip;" | psql $ mkdir ~/geoip $ cd ~/geoip $ cat >~/.config/geoip <<:: cat ~/.config/geoip local-location = 50.607080/50.607080 use_distance : True json-pretty : yes maxmind-account : 123456 license-id : GeoIP2-Lite license-key : aAbBcCdDeEfFgGhH :: $ geoip --fetch -- be patient. This will take a while to populate your database $ geoip -d -l 50.607080/50.607080 ipinfo.io GeoIP data for 34.117.186.192 - ipinfo.io: CIDR : 34.117.0.0/16 IP range : 34.117.0.0 - 34.117.255.255 Provider : GOOGLE-CLOUD-PLATFORM City : Kansas City, 616, 64184 Country : US United States Continent : North America Timezone : America/Chicago Location : 39.1027 / -94.5778 (1000) 39°06'09.72" / -94°34'4 +0.08" https://www.openstreetmap.org/#map=10/39.1027/-94.5778 https://www.google.com/maps/place/@39.1027,-94.5778,10z Location : 50.6071 / 50.6071 50°36'25.49" / 50°36'2 +5.49" Distance : ± 9477.56km EU member : No Satellite : No Anon Proxy: No
|
---|