All StopTimeUpdates within a TripUpdate contain predictions in the past #67
Labels
GTFS(-rt) best practice clarification
GTFS(-rt) spec clarification
GTFS RT Best Practices
Used for issues or pull requests related to GTFS RT Best Practices
imported
new rule
your-first-pr
Issues that are a good place to start contributing to the project
Milestone
Issue by barbeau
Oct 24, 2019
Originally opened as CUTR-at-USF#357
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: