Two main cases of problematic GTFS-rt updates are handled:
if the TripUpdate modified the list of stops, which mainly means SKIPPED stop updates -- in these cases the replacement Trip may have invalid StopTimes => Modifying trips is disabled.
if realtime data was UNAVAILABLE for a stop, a -1 constant was used which caused problems in other parts. This is mitigated by:
returning the scheduled arrival / departure time in theses cases
adding an explicit check that the new / updated trip times are increasing
If either of these checks fail, then the trip update is ignored.
Two main cases of problematic GTFS-rt updates are handled:
TripUpdate
modified the list of stops, which mainly meansSKIPPED
stop updates -- in these cases the replacementTrip
may have invalidStopTime
s => Modifying trips is disabled.if realtime data was
UNAVAILABLE
for a stop, a-1
constant was used which caused problems in other parts. This is mitigated by:If either of these checks fail, then the trip update is ignored.