https://github.com/explainers-by-googlers/approximate-geolocation
https://github.com/w3c/geolocation/pull/195
We propose an extension to the Geolocation API that introduces a new option, accuracyMode, to getCurrentPosition() and watchPosition(). This change allows the browser to return either precise or approximate location data based on the user's granular permission setting for the site. This mechanism is designed to resolve the existing privacy/utility conflict by honoring the user's intent to share a low-precision location.
Blink>Geolocation
Motivation
The standard Geolocation API currently creates a poor privacy/utility trade-off: many websites need only an approximate location (e.g., for local weather or content localization) but receive high-precision data, posing a significant privacy risk.
While the existing enableHighAccuracy option is intended to indicate the application's preference for accuracy, it is only a non-binding hint and does not provide a mechanism for the user agent (browser) to enforce a specific, low-precision outcome.
To solve this, we propose the Approximate Geolocation. This extension introduces a new option, accuracyMode, to getCurrentPosition() and watchPosition() that provides an explicit mechanism for both site and user control:
It allows sites to explicitly request an approximate location.
Crucially, it enables the browser to reduce precision when a site requests precise location but the user has only granted an "approximate" level of permission.
By introducing this new, privacy-preserving permission state, we aim to enhance user control while satisfying the vast majority of website use cases.
https://github.com/w3ctag/design-reviews/issues/1131
Existing Geolocation API: This feature is an addition to the existing API. Existing calls without the new option will function as they do today.
Browser Positions:
Gecko/Firefox:
(Under consideration) https://github.com/mozilla/standards-positions/issues/1193
WebKit/Safari:
Web developers:
No Signal
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
No change in WebView behavior
None
No, but planning to add web platform tests before shipping.
N/A
https://launch.corp.google.com/launch/4416196
https://chromestatus.com/feature/5143609755828224