Using HTML5 geolocation API to get the distance of the visitor from me
breakthebit.org
breakthebit.org
I did this over two years ago with the same js call - I work for a company with multiple buildings. Go to a web page and you'll see a list of conference rooms in the buildings you are closest to and their availability. Found a web page to batch convert addresses to lat/long - made it pretty easy.
Here's something I wrote at the same time that shows your proximity to a city zip code.