W3C/HTML5 - Browser Geolocation

Oscar Brito

 if(navigator.geolocation) {
.geolocation.getCurrentPosition( function(position) {
      var lat
= position.coords.latitude; var long = position.coords.longitude;
}, function() {
//no browser support

Google gears:

 var geo = google.gears.factory.create('beta.geolocation');
.getCurrentPosition(<same as before>)

Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.