Open itsP33t opened 1 year ago
Actually I think what would be even better is to change the green/red number to show actual earlyness/delay based on timetable data. For example if a train is scheduled to arrive at 18:00, but it is delayed by 5 minutes at it's current position, then we show +5 for every station dispatcher that comes after it's current position.
Other example: Train scheduled to arrive at 12:10 in Sosnowiec Glowny. It is currently at Bedzin, was scheduled to arrive there at 12:06, but has arrived there at 12:10. So we show:
So this is basically live lateness/earlyness rather than time difference between current time and scheduled arrival. Implementing this would also need a little bit of revisiting for the early/delayed badge.
The delay / advance is calculated relative to the current time. I'll change that to calculate it relative to the travel time to the station.
For example (see screenshot) for train 4122 which is 3 minutes from the station, I will put the estimated time of arrival at 13:18 -5 minutes.