For each train, the train position stream gives you its current position and the future positions for the next 30 seconds with an interval of 2 seconds.
The current code just displays the current position, but the way to achieve a continuous movement of trains is by taking advantage of these future positions. This code shows how to calculate a trains specific position at a given time using the current and future position information.
Implementing this would give a continuous train position movement feeling.
For each train, the train position stream gives you its current position and the future positions for the next 30 seconds with an interval of 2 seconds.
The current code just displays the current position, but the way to achieve a continuous movement of trains is by taking advantage of these future positions. This code shows how to calculate a trains specific position at a given time using the current and future position information.
Implementing this would give a continuous train position movement feeling.