bash geolocation

MY_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
curl "http://freegeoip.net/json/$MY_IP"