Me and my partner are working on an exercise web application for our school thesis. We are trying to get a runner\'s position and track him during his workout with the watchpos
I am also wondering where to add the enableHighAccuray option. I tried the following:
function startWatcher(callback, options) {
if ("geolocation" in navigator) {
// Watch position updates
watchCallback = callback;
// Watch for updates
watchID = navigator.geolocation.watchPosition(appendPosition, displayError, {
enableHighAccuracy:true
});
var registerWatchPosition = function(position) {
appendPosition(position);
};
} else {
alert('Geolocation is not supported!');
}
}
But didn't work as expected...
Thanks!