The W3C has created a standard for location sharing called Geolocation. It allows any person to share her location with any website at the click of a button. Imagine the possibilities with this.
Here is a scenario:
You’ve arrived in a new city, a new continent, a new coffee shop. You don’t really know where you are, and are looking for a good place to eat. You pull out your laptop, fire up Firefox, and go to your favorite review site. It automatically deduces your location, and serves up some delicious suggestions a couple blocks away and plots directions there.
Here is a screenshot of what it looks like when Geode ask for a location:
Getting started using Geode
var lat = pos.latitude;
var lon = pos.longitude;
alert(lat + ', ' + lon);
alert('You must be on a wifi network for us to determine your location');
// Ask the browser for its location