This sounds excellent!! This appears to bring the same richness of the APIv2 to GTFS-RT... meaning, having the arrival prediction which is so vital plus the departure timepoint.
When you say "leave existing API behavior the way it is now" does that mean that this proposed change will literally only affect GTFS-RT?
Also, will there be a direct correlation between APIv2 and GTFS-RT field values like this pseudo-code?
{ GTFS-RT[ StopTimeUpdate->arrival ] == APIv2[ trip->stop->pre_dt ] }
if ( GTFS-RT[ StopTimeUpdate->arrival ] <= APIv2[ trip->stop->sch_arr_dt ] ) # train on time (arrive early, or as scheduled)
{ GTFS-RT[ StopTimeUpdate->departure ] == APIv2[ trip->stop->sch_dep_dt ] } # departure as scheduled
if ( GTFS-RT[ StopTimeUpdate->arrival ] > APIv2[ trip->stop->sch_arr_dt ] ) # train is late
{ GTFS-RT[ StopTimeUpdate->departure ] == APIv2[ trip->stop->pre_dt ] } # departure as predicted, later than scheduled
It would help me understand how the GTFS-RT and API relate if you could validate those three assertions for me. (I don't currently use GTFS-RT but I very likely will in the future.)
Thank you!!
-- Stefan