GEOLocation is used to find out where are now @ the world
GEOLocation API can be used for wide range of application,Such as
1. Find points of interest in the user's area
2. Annotating content with location information
3. Show the user's position on a map
4. Turn-by-turn route navigation
5. Alerts when points of interest are in the user's vicinity
6. Up-to-date local information
7. Location-tagged status updates in social networking applications
Here is a sample GEOLocation Code
<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=_your_key_" type="text/javascript"></script>
<script type="text/javascript">
var map;
function initialize(){
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.500, -4.00), 4);
map.setUIToDefault();
}
}
function findLoc(){
if (!navigator.geolocation) {
alert('Sorry, your browser does not support Geo Services');
}
else {
// Get the current location
navigator.geolocation.getCurrentPosition(showMap);
return false;
}
}
function showMap(position){
var lat = position.coords.latitude;
var lon = position.coords.longitude;
alert('You appear to be located at (' lat ', ' lon ') (lat,lng)');
var myPoint = new GLatLng(lat, lon);
map.setCenter(myPoint, 15);
var yourCurrPoint = new GMarker(myPoint);
map.addOverlay(yourCurrPoint);
return false;
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
...
<form>
<input type="button" value="Find Me!" onclick="findLoc()" />
</form>
<div id="map_canvas" style="width: 500px; height: 300px">
</div>
</body>
</html>
The Above code is Coped from : http://tai-dev.blog.co.uk/2009/07/17/a-quick-test-of-the-html5-geolocation-api-with-firefox-3-5-spookily-accurate-on-my-work-pc-6533920/
You can Find More Details From
1.WikiPedia
2.W3 Specification

