P
P
Programep2017-04-15 22:58:37
JavaScript
Programep, 2017-04-15 22:58:37

Why does the location change with a large difference in distance?

Good afternoon!
1. On the site page, the openstreetmap map with the leafletjs plugin and the location function (locate) are configured.
The locate function runs on a timer every 2 seconds with the parameters:

map.locate({enableHighAccuracy: true, maximumAge: 2000, timeout: 2000});

2. On another page, markers are shown at coordinates obtained from point 1. The map is also updated every 2 seconds
3. This software works in a browser on a smartphone in a vehicle.
The question is the following.
For some reason, some markers change their location drastically - first in one place, then in a completely different one, that is, at a distance of about 500 meters or more, then they return to the first location again.
Tell me, please, what could be the problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question