On the code:
Window.onload =function() {if(navigator.geolocation) {navigator.geolocation.getCurrentPosition (function(POS) {$ ("lat"). InnerHTML= Pos.coords.latitude;//Latitude$ ("Lon"). InnerHTML = Pos.coords.longitude;//Longitude$ ("alt"). InnerHTML = Pos.coords.altitude;//Height }, function() {},{enablehighaccuracy:true, maximumage:600000} );} Else { $("Status"). InnerHTML = ' Your browser does not support ';}
-some browsers can provide more detailed address information
{"Coords":.. // ..." Address ": {" Streetnumber ":" 6 "," Street ":" Postgasse "," premises ":null," C ity ":" Murnau am Staffelsee "," county ":" Garmisch‐partenkirchen "," Region ":" Bavaria "," Country ":" Germany "," CountryCode ":" DE "," PostalCode ":" 82418 "," Contractid ":" "," classdescription ":" WiFi Geo position Address Object ",// ... },// ...}
HTML5 's Geographic information application get its place