perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.06k stars 347 forks source link

Vehicle route tracking #661

Open fermabo opened 2 years ago

fermabo commented 2 years ago

Hi, I'm trying to find a way to represent a marker or vehicle that moves at a certain speed on a route, simulating real-time tracking, is it possible?

curtisy1 commented 2 years ago

This should definitely be possible. If you have the vehicle's coordinates when it moves, updating the waypoints might do the trick (similar to what I did as a quick example here)