Poor man geolocation with Google redirect

The other day I was wondering if there’s a way to get advantage of all of these annoying HTTP redirects operated by CDN and Clouds providers.
The first thought logically headed me to “geo localization”, so here the command line to find out where you are, almost.
And perhaps you should assume .com -> US.

$ curl -sI http://www.google.com | grep "^Location:" | sed 's/.*\.\([a-z]*\)\//\1/'

The second though… no there was only one.