[geolocation-api] How to specify desired accuracy / resolution of data? (#49)

pes10k has just created a new issue for https://github.com/w3c/geolocation-api:

== How to specify desired accuracy / resolution of data? ==
The spec currently says that

[Section 7.2 Requirements](https://w3c.github.io/geolocation-api/#requirements_section)
```
The Geolocation API MUST allow an application to specify a desired accuracy level of the location information.
```

This is a terrific idea, and enables all sorts of good practices (i might just want to know what city someone lives, but not their street, etc, for ethical, safety and legal reasons).

However, I don't see a way to do this in the API.  I see the `enableHighAccuracy` flag, but i) this is a boolean option, and ii) its not clear to the caller what this will mean, or what the resolution of `true` or `false` will be here.  It would be a terrific to have a way of allowing sites to say "no more accurate than…" or "only city level" or "only use IP based location" etc.  

Basically, the ask here to allow sites to blind themselves from non-needed location data

Please view or discuss this issue at https://github.com/w3c/geolocation-api/issues/49 using your GitHub account

Received on Tuesday, 30 June 2020 20:56:55 UTC