This is on Android 11, latest Chrome (96.4664.104). I call navigator.geolocation.getCurrentPosition. If the accuracy is low I call it again. A similar geolocation object is returned, just with a new timestamp.
However if I start the Google Maps Android app between the first and the second call to navigator.geolocation.getCurrentPosition then I get a more accurate position in the second call.
Is there something I can do in JavaScript instead to get a more accurate position?
Here is the options used in the call to getCurrentPosition. The time between the calls is at least 2 seconds.
const optPosition = {
maximumAge: 1000,
timeout: 1000,
enableHighAccuracy: true,
}