http://qs321.pair.com?node_id=11118413


in reply to Help with Geo::IP output

As my fellow monk already mentioned, MaxMind can be done using App::geoip:

$ geoip -w 103.2.106.33 GeoIP data for 103.2.106.33 - (hostname not found): CIDR : 103.2.104.0/22 IP range : 103.2.104.0 - 103.2.107.255 Provider : Singapore Telecommunications Limited City : Country : SG Singapore Continent : Asia Timezone : Asia/Singapore Location : 1.3667 / 103.8000 (50) 122'00.12" / 10348'0 +0.00" https://www.openstreetmap.org/#map=13/1.3667/103.8000 https://www.google.com/maps/place/@1.3667,103.8000,13z Location : 52.2892 / 5.2603 5217'21.13" / 515'3 +6.92" Distance : 10467.30km Whois information: Name : Singapore Telecommunications Limited ID : CO122-AP Phone : +65 83180832 EMail : opsinfosvc@singtel.com Abuse : opsinfosvc@singtel.com Address : 7 Bedok South Road NCS Bedok EU member : No Satellite : No Anon Proxy: No
$ geoip --json-pretty 103.2.106.33 [ { "rep_continent" : "", "map_urls" : [ "https://www.openstreetmap.org/#map=13/1.3667/103.8000", "https://www.google.com/maps/place/@1.3667,103.8000,13z" ], "longitude" : "103.8000", "local_longitude" : "---", "accuracy" : "50", "longitude_dms" : "10348'00.00\"", "ip_to_n" : 1728211967, "postal_code" : "", "distance_unit" : "km", "city_tz" : "Asia/Singapore", "local_latidue_dms" : "---", "ip" : "103.2.106.33", "reg_continent" : "Asia", "provider" : "Singapore Telecommunications Limited", "local_latitude" : "---", "reg_ctry_eu" : 0, "hostname" : "(hostname not found)", "latitude_dms" : "122'00.12\"", "city" : "", "local_longitude_dms" : "---", "distance" : 10467.2979838297197, "reg_ctry_iso" : "SG", "rep_ctry_name" : "", "cidr" : "103.2.104.0/22", "ip_to" : "103.2.107.255", "city_metro_code" : "", "ip_from_n" : 1728210944, "rep_ctry_iso" : "", "city_name" : "", "reg_ctry_name" : "Singapore", "id" : 1880251, "ip_from" : "103.2.104.0", "latitude" : "1.3667", "ip_n" : 1728211489, "satellite" : 0, "anon_proxy" : 0 } ]

Enjoy, Have FUN! H.Merijn