I'm currently using this library to track the position of my car on a map but the main purpose of my web app is to track the position of a self-driving car in my local town (Hired by the company).
What I noticed when tracking my own position is that:
The position is often off the road, even though I am on the road.
The position isn't really moving nicely, I set the update frequency to both 0.5s/1s/5s and it doesn't move nicely at all
Is it possible to somehow:
Snap the marker to the road so it always stays to the closest road?
Animate the position from one update to the other and make it pan slowly, say I update the position every 5 seconds, could I somehow make it animate from point A to B with a time of 5 seconds, so it somehow follows the speed of my car as well?
I'm currently using this library to track the position of my car on a map but the main purpose of my web app is to track the position of a self-driving car in my local town (Hired by the company).
What I noticed when tracking my own position is that:
Is it possible to somehow:
My code is here below: