What is a HTML5 Geolocation API?

The Geolocation API is part of the W3C HTML5 standard, which provides a simple high-level JavaScript API, and this allows websites to request a physical location. thereby potentially compromising user privacy.

The HTML5 Geolocation API is designed to allow websites to make «one-shot» location requests (commonly used to locate the user on a map or show nearby points-of-interest), or repeated position updates to keep track of the users steps (which may be used to give directions as the user moves through a city, for example), as well as the ability to explicitly query the cached positions.

The Geolocation API does not store any information in itself, but rather provides the ability to gather existing information from the device being queried. It can collect location info from sources such as IP Address, GPS, WiFi, Bluetooth, RFID, GSM/CDMA ID, or user input.