HTML5 Geolocation API

JavaScript Disabled – Geolocation API is a part of HTML5 and is accessible via JavaScript

The Geolocation API gives websites access to a high-level interface that allows them to query physical location information such as latitude and longitude, thereby breaking the user's anonymity. This page will check if the Geolocation API works in your browser, show all the data that can be retrieved, and ensure that websites will not access the API without your explicit permission.

Permissions API

Origin Permissions
"granted" – you allow to request your location
? "prompt" – you ask when tries to request your location
× "denied" – you don't allow to request your location
Global Permissions
"granted" – you allow all third-party websites to request your location
? "prompt" – you ask when third-party websites try to request your location
× "denied" – you don't allow third-party websites to request your location

Geolocation API

API Status
Your browser supports Geolocation API
× Your browser doesn't support Geolocation API
(geolocation is updating as it changes)

Geolocation Data

Cache Age
Altitude Accuracy
Reverse Geocoding
Loading maps has been disabled by Privacy Settings.

The API allows websites to make «one-shot» location queries (getCurrentPosition) or multiple position updates (watchPosition) to track the user's heading and speed. 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.

For devices without special sensors (e.g., a desktop computer with a wired connection) HTML5 Geolocation will match IP address location. When you change the IP country using VPN or proxy, the Geolocation API will show your location according to GeoIP.

Further Reading

Leave a Comment (50)