Or you could use http://geoip.ubuntu.com/lookup which the Ubuntu installer uses for default settings. It's all returned in xml and gives current location and timezone as well as IP address (not that I've ever woken up with no idea where I am of course)