go get -u github.com/cuonglm/ipdata/cmd/goipdata
$ goipdata -ip 8.8.8.8
{
"ip": "8.8.8.8",
"city": "",
"region": "",
"country_name": "United States",
"country_code": "US",
"continent_name": "North America",
"continent_code": "NA",
"latitude": 37.751,
"longitude": -97.822,
"asn": "AS15169",
"organisation": "Google LLC",
"postal": "",
"currency": "USD",
"currency_symbol": "$",
"calling_code": "1",
"flag": "https://ipdata.co/flags/us.png",
"time_zone": ""
}
Cuong Manh Le cuong.manhle.vn@gmail.com
See LICENSE