HTML5 Geolocation


Geolocation is a feature of the HTML5 specification and API (Application Programming Interface). Geolocation can pinpoint the user’s location anywhere in the world. Since this can compromise user privacy, the position is not available unless the user approves it. Geolocation adds location based features that are ECMAScript compliant (Javascript).

Geolocation uses the Location Information Server (LIS) to locate and track information on a user which was set up by the National Emergency Number Association. Other sources of information may include GPS, if available, RFID, the device’s IP address, Wi-Fi identification.

The API operates on a “best-effort” but does not guarantee the exact location precision. The API for the Geolocation determines your location and returns the latitude and longitude of your position if you allow it.

Internet Explorer 9+, Firefox, Chrome, Safari and Opera support Geolocation. However, Geolocation is much more accurate for devices with GPS, like iPhone.
IEFFChromeOpera
Internet Explorer 9+Firefox 3.5+Chrome 5+Opera 10.6+
SafariiPhoneAndroidWindows Phone
Safari 5+iPhone 3+Android 2+Windows Phone 7.5+

Demonstration
The following demonstration shows how the HTML5 script is displayed on the Web.

     





      I went on a once in a lifetime holiday.    
      Never again.