Just realized that when you fetch Google's JS API it will include your geo-location embedded in the javascript file it returns. You can verify this by just going to http://www.google.com/jsapi in your browser and looking at google.loader.ClientLocation<p>You can use this easily in any javascript code you write with the following snippet:<p><script src="http://www.google.com/jsapi"></script>
<script>
alert("I love living in: " + google.loader.ClientLocation.address.city);
</script>
I don't think this is a hack. it's documented api behavior:
<a href="http://code.google.com/apis/ajax/documentation/#ClientLocation" rel="nofollow">http://code.google.com/apis/ajax/documentation/#ClientLocati...</a>