How to get country, city and geolocation info
$ curl https://ipinfo.io/
{
"ip": "189.114.198.236",
"hostname": "189.114.198.236.dynamic.adsl.gvt.net.br",
"city": "Florianópolis",
"region": "Santa Catarina",
"country": "BR",
"loc": "-27.5967,-48.5492",
"org": "AS18881 TELEFÔNICA BRASIL S.A",
"postal": "88000-000",
"timezone": "America/Sao_Paulo",
"readme": "https://ipinfo.io/missingauth"
}% ====