Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit GeolocationSensor.Accuracy and Latency #25

Open
gmandyam opened this issue Aug 9, 2018 · 4 comments
Open

Revisit GeolocationSensor.Accuracy and Latency #25

gmandyam opened this issue Aug 9, 2018 · 4 comments

Comments

@gmandyam
Copy link

gmandyam commented Aug 9, 2018

Current definition https://w3c.github.io/geolocation-sensor/#geolocationsensor-accuracy does not seem to be consistent with platform accuracy definitions: e.g. Windows (https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geocoordinate.accuracy) and Android (https://developer.android.com/reference/android/location/Location#getAccuracy()).

One possibility is to allow implementation to return accuracy confidence level in addition to accuracy in meters: dictionary accuracy{double radius, double confidence}

@tomayac
Copy link
Contributor

tomayac commented Sep 25, 2018

To add to that, on iOS, there is the concept of horizontalAccuracy, which returns "[t]he radius of uncertainty for the geographical coordinate, measured in meters". This is part of the result of a call to requestLocation(), where you can specify the desiredAccuracy , a concept entirely absent from the current Geolocation ReadOptions.

@tomayac tomayac changed the title Revisit GeolocationSensor.Accuracy Revisit GeolocationSensor.Accuracy and Latency Sep 26, 2018
@tomayac
Copy link
Contributor

tomayac commented Sep 26, 2018

Essentially we need to get agreement on whether we want to allow a desired accuracy and/or desired latency (which might impact the particular other) as input parameters for GeolocationSensor.read().

For the legacy API, it is suggested to first get whatever position data quickly with navigator.geolocation.getCurrentPosition() and then to watch it in case better data comes in via navigator.geolocation.watchPosition().

@tomayac
Copy link
Contributor

tomayac commented Mar 25, 2019

For Android, the low-level location strategies are well documented. In general, it is recommended to use higher-level abstractions that automatically deal with the concrete details.

@tomayac
Copy link
Contributor

tomayac commented Mar 25, 2019

For iOS, the desired accuracy can be requested from its location manager. Unlike with Android, where a specific technology (that implies a certain accuracy) can be chosen, iOS focuses more on directly human-language accuracy (like “best for navigation”).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@tomayac @gmandyam and others