This repository has been archived by the owner on May 27, 2024. It is now read-only.
All StopTimeUpdates within a TripUpdate contain predictions in the past #357
Labels
GTFS(-rt) spec clarification
new rule
your-first-pr
Issues that are a good place to start contributing to the project
Milestone
Summary:
If a TripUpdate contains only stop_times_updates for arrival/departure times in the past, this is a warning.
I'd like for this to be an error, but currently the GTFS-rt spec (https://github.com/google/transit/blob/master/gtfs-realtime/spec/en/trip-updates.md#stop-time-updates) says:
This can be interpreted as all stop_time_updates in a TripUpdates could be in the past. IMHO this means that some of the stop_time_updates in a TripUpdate can occur in the past, but there should be at least one stop_time_update with a future arrival or departure time for it to be a valid prediction. Otherwise consumers should consider the TripUpdate invalid and assume that no real-time information exists for the trip.
So, I'd like for the spec to be changed to say something like:
Steps to reproduce:
Run the validator against a feed that contains a TripUpdate that only contains stop_time_updates with arrival and departure times in the past.
Expected behavior:
The validator should flag this as a warning.
Observed behavior:
No warnings are flagged.
The text was updated successfully, but these errors were encountered: