Into a php project, I would like to show my current position on a map. Unfortunately, the position is very inaccurate. It deviates by about 20 metres from my actual position. Can it be more accurate?
if(!navigator.geolocation) {
status.textContent = 'Geolocation is not supported by your browser';
} else {
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};
status.textContent = 'Locating…';
navigator.geolocation.getCurrentPosition(success, error, options);
}