Clarification of TripUpdate.timestamp #263
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In scenarios where StopTimeUpdates are specified for events in the past, there may be multiple "Moment[s] at which the vehicle's real-time progress was measured" as a part of a TripUpdate when there are StopTimeUpdates for events in the past. This proposal explicitly specifies that the appropriate timestamp to use is "The most recent moment at which the vehicle's real-time progress was measured to estimate StopTimes in the future."
One scenario where this ambiguity has created challenges is when a TripUpdates consumer relies on this timestamp to understand how old a particular prediction is for the purposes of better understanding the accuracy of predictions.
StopTimeUpdates in the past are important for informing passengers about recently departed trips, especially when a vehicle is running early, as described in the TripUpdates spec:
As such, additional language has also been added in-line to make this behavior explicit: "When StopTimes in the past are provided, arrival/departure times may be earlier than this value."