HTML5 Geolocation API

The Geolocation API is a part of the W3C HTML5 standard which is provides a simple high-level JavaScript API that allow websites to request physical location, thereby potentially compromising the user's privacy. This page is to ensure that no location information is made available through this API without the your express permission.

HTML5 Geolocation API

Your browser supports W3C Geolocation API
× Your browser does not supports W3C Geolocation API

Permissions API

Origin Permissions
! Granted — You allow browserleaks.com to track your physical location (not recommended).
Prompt — You ask when browserleaks.com try to track your physical location (recommended).
× Denied — You don't allow browserleaks.com to track your physical location.
Global Permissions
! Granted — You allow all websites to track your physical location (not recommended).
Prompt — You ask when websites try to track your physical location (recommended).
× Denied — You don't allow any websites to track your physical location.

Reverse Geocoding

Present Position
Latitude
Longitude
Accuracy
Heading
Altitude
Altitude Accuracy
Speed
Cache Age
JavaScript Disabled — Geolocation API is a part of HTML5 and is accessible via JavaScript
Geocoding Failed — Connection to Google Maps was Forbidden by Privacy Settings.

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 user's 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 API itself is agnostic to how the browser or device determines the current location: a phone or other mobile device might use a Global Positioning System (GPS) receiver, while a laptop's location might be triangulated from nearby Wi-Fi networks or inferred from its IP address. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input. No guarantee is given that the API returns the device's actual location.

Further Reading

  1. Using Geolocation — Mozilla Developer Network
  2. HTML5 Geolocation API Specification — W3C
  3. The Google Geocoding API — Google Developers

Leave a Comment