← Back to release summary

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

Ecosystem

Explainers: https://github.com/explainers-by-googlers/approximate-geolocation/blob/main/README.md

View on chromestatus.com