-
Notifications
You must be signed in to change notification settings - Fork 41
Recommended practice for populating various fields for arrival/departure estimates? #329
Comments
So it seems that TripUpdate.delay may have been intended to represent "schedule deviation", i.e., the observed past value for how ahead/behind schedule the vehicle is, although this isn't very clear in the spec wording and I don't think it matches current use of the field. The first line says:
...but then it's followed by some text that appears to be copied from StopTimeEvent.delay, that indicates it's a prediction:
...which isn't correct if this is actually schedule deviation. |
From an analysis through transitfeeds.com. There are 24 agencies that use StopTimeUpdate.delay and none use TripUpdate.delay. Here are the 24 agencies: FEEDTriMet TripUpdates The code for this analysis is at trip_and_stop_delay branch |
@minhhpham Thanks! And how many feeds total? I assume the remainder use at least StopTimeUpdate time fields. |
As mentioned in opentripplanner/OpenTripPlanner#2733 (comment), the spec currently states:
This is wrong after the addition of TripUpdate.delay - the documentation should say:
|
Before Concerning the conversation in #41, I agree that (and the spec should reflect that) it's an either-or situation - it is an error to populate As to the spec language quoted above, ("Delay should only be specified when the prediction is given relative to some existing schedule in GTFS."), I understand this to mean simply that the If the community prefers to remove |
@kurtraschke This same language appears in the There are three situations I can think of that this applies to where prediction
I agree that we should specifically call out these situations here in the docs. |
Summary:
This is a good candidate for a GTFS-realtime best practice.
From discussion in #41 (comment).
What is the recommended practice for populating or not populating these fields?
Some advantages/disadvantages are discussed in the above thread.
The text was updated successfully, but these errors were encountered: