Introduce yourself
I'm asking due to a related questions that has arisen on TIDES: TIDES-transit/TIDES#263.
Ask a question
GTFS-RT VehiclePosition messages have a current_stop_sequence attribute, defined as:
The stop sequence index of the current stop. The meaning of current_stop_sequence (i.e., the stop that it refers to) is determined by current_status. If current_status is missing IN_TRANSIT_TO is assumed.
This documentation is ambiguous as to whether current_stop_sequence is intended to refer to the same thing as StopTimeUpdate.stop_sequence, which is defined as:
Must be the same as in stop_times.txt in the corresponding GTFS feed. Either stop_sequence or stop_id must be provided within a StopTimeUpdate - both fields cannot be empty. stop_sequence is required for trips that visit the same stop_id more than once (e.g., a loop) to disambiguate which stop the prediction is for. If StopTimeProperties.assigned_stop_id is populated, then stop_sequence must be populated. Required if TripUpdate.schedule_relationship is NEW or REPLACEMENT, and the value must be increasing along the trip.
So, the question is -- can VehiclePosition.current_stop_sequence be safely assumed to correspond to StopTimeUpdate.stop_sequence/stop_times.stop_sequence or not?
This is particularly relevant vis a vis relationship to TIDES because TIDES vehicle locations has a distinct trip_stop_sequence field which is specifically defined differently from stop_times.stop_sequence.
Introduce yourself
I'm asking due to a related questions that has arisen on TIDES: TIDES-transit/TIDES#263.
Ask a question
GTFS-RT
VehiclePositionmessages have acurrent_stop_sequenceattribute, defined as:This documentation is ambiguous as to whether
current_stop_sequenceis intended to refer to the same thing asStopTimeUpdate.stop_sequence, which is defined as:So, the question is -- can
VehiclePosition.current_stop_sequencebe safely assumed to correspond toStopTimeUpdate.stop_sequence/stop_times.stop_sequenceor not?This is particularly relevant vis a vis relationship to TIDES because TIDES vehicle locations has a distinct
trip_stop_sequencefield which is specifically defined differently fromstop_times.stop_sequence.