Approximate geolocation
- Category
- Capabilities (Fugu)
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: The feature is not yet fully tested in WPTs because of missing infrastructural support. Implementing tests will require additions to WebDriver BIDI in order to overwrite approximate and precise location separately. See https://crbug.com/513467850
Summary
Extends the Geolocation API to enable sites to request approximate location data only. When calling navigator.geolocation.getCurrentPosition() or navigator.geolocation.watchPosition(), web developer can use the PositionOptions parameter accuracyMode, which can be either "precise" (default) or "approximate", to request either precise or approximate location.
Motivation
Websites using the Geolocation API can often function properly with an approximate estimate of the user's position. This change enables websites to signal that to the user agent by requesting approximate location only, enhancing the user privacy without loss of functionality. See https://github.com/explainers-by-googlers/approximate-geolocation for more context.
Standards & signals
- Specification: https://github.com/w3c/geolocation/pull/233
- Firefox: Negative
- Safari: Support
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/u/1/issues/495852854
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=approximate-geolocation
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Approximate%20geolocation
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Approximate%20geolocation
- Baseline status: https://webstatus.dev/?q=Approximate%20geolocation
Explainers: https://github.com/explainers-by-googlers/approximate-geolocation/blob/main/README.md