public static interface GtfsRealtime.TripUpdateOrBuilder extends com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>
Modifier and Type | Method and Description |
---|---|
int |
getDelay()
optional int32 delay = 5; |
GtfsRealtime.TripUpdate.StopTimeUpdate |
getStopTimeUpdate(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; |
int |
getStopTimeUpdateCount()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; |
List<GtfsRealtime.TripUpdate.StopTimeUpdate> |
getStopTimeUpdateList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; |
GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder |
getStopTimeUpdateOrBuilder(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; |
List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> |
getStopTimeUpdateOrBuilderList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; |
long |
getTimestamp()
optional uint64 timestamp = 4; |
GtfsRealtime.TripDescriptor |
getTrip()
required .transit_realtime.TripDescriptor trip = 1; |
GtfsRealtime.TripDescriptorOrBuilder |
getTripOrBuilder()
required .transit_realtime.TripDescriptor trip = 1; |
GtfsRealtime.VehicleDescriptor |
getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3; |
GtfsRealtime.VehicleDescriptorOrBuilder |
getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 3; |
boolean |
hasDelay()
optional int32 delay = 5; |
boolean |
hasTimestamp()
optional uint64 timestamp = 4; |
boolean |
hasTrip()
required .transit_realtime.TripDescriptor trip = 1; |
boolean |
hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3; |
getDefaultInstanceForType, getExtension, getExtension, getExtensionCount, hasExtension
boolean hasTrip()
required .transit_realtime.TripDescriptor trip = 1;
The Trip that this message applies to. There can be at most one TripUpdate entity for each actual trip instance. If there is none, that means there is no prediction information available. It does *not* mean that the trip is progressing according to schedule.
GtfsRealtime.TripDescriptor getTrip()
required .transit_realtime.TripDescriptor trip = 1;
The Trip that this message applies to. There can be at most one TripUpdate entity for each actual trip instance. If there is none, that means there is no prediction information available. It does *not* mean that the trip is progressing according to schedule.
GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
required .transit_realtime.TripDescriptor trip = 1;
The Trip that this message applies to. There can be at most one TripUpdate entity for each actual trip instance. If there is none, that means there is no prediction information available. It does *not* mean that the trip is progressing according to schedule.
boolean hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
GtfsRealtime.VehicleDescriptor getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
List<GtfsRealtime.TripUpdate.StopTimeUpdate> getStopTimeUpdateList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
Updates to StopTimes for the trip (both future, i.e., predictions, and in some cases, past ones, i.e., those that already happened). The updates must be sorted by stop_sequence, and apply for all the following stops of the trip up to the next specified one. Example 1: For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure delay of 0 for stop_sequence of the current stop means that the trip is exactly on time. Example 2: For the same trip instance, 3 StopTimeUpdates are provided: - delay of 5 min for stop_sequence 3 - delay of 1 min for stop_sequence 8 - delay of unspecified duration for stop_sequence 10 This will be interpreted as: - stop_sequences 3,4,5,6,7 have delay of 5 min. - stop_sequences 8,9 have delay of 1 min. - stop_sequences 10,... have unknown delay.
GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
Updates to StopTimes for the trip (both future, i.e., predictions, and in some cases, past ones, i.e., those that already happened). The updates must be sorted by stop_sequence, and apply for all the following stops of the trip up to the next specified one. Example 1: For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure delay of 0 for stop_sequence of the current stop means that the trip is exactly on time. Example 2: For the same trip instance, 3 StopTimeUpdates are provided: - delay of 5 min for stop_sequence 3 - delay of 1 min for stop_sequence 8 - delay of unspecified duration for stop_sequence 10 This will be interpreted as: - stop_sequences 3,4,5,6,7 have delay of 5 min. - stop_sequences 8,9 have delay of 1 min. - stop_sequences 10,... have unknown delay.
int getStopTimeUpdateCount()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
Updates to StopTimes for the trip (both future, i.e., predictions, and in some cases, past ones, i.e., those that already happened). The updates must be sorted by stop_sequence, and apply for all the following stops of the trip up to the next specified one. Example 1: For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure delay of 0 for stop_sequence of the current stop means that the trip is exactly on time. Example 2: For the same trip instance, 3 StopTimeUpdates are provided: - delay of 5 min for stop_sequence 3 - delay of 1 min for stop_sequence 8 - delay of unspecified duration for stop_sequence 10 This will be interpreted as: - stop_sequences 3,4,5,6,7 have delay of 5 min. - stop_sequences 8,9 have delay of 1 min. - stop_sequences 10,... have unknown delay.
List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> getStopTimeUpdateOrBuilderList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
Updates to StopTimes for the trip (both future, i.e., predictions, and in some cases, past ones, i.e., those that already happened). The updates must be sorted by stop_sequence, and apply for all the following stops of the trip up to the next specified one. Example 1: For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure delay of 0 for stop_sequence of the current stop means that the trip is exactly on time. Example 2: For the same trip instance, 3 StopTimeUpdates are provided: - delay of 5 min for stop_sequence 3 - delay of 1 min for stop_sequence 8 - delay of unspecified duration for stop_sequence 10 This will be interpreted as: - stop_sequences 3,4,5,6,7 have delay of 5 min. - stop_sequences 8,9 have delay of 1 min. - stop_sequences 10,... have unknown delay.
GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
Updates to StopTimes for the trip (both future, i.e., predictions, and in some cases, past ones, i.e., those that already happened). The updates must be sorted by stop_sequence, and apply for all the following stops of the trip up to the next specified one. Example 1: For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure delay of 0 for stop_sequence of the current stop means that the trip is exactly on time. Example 2: For the same trip instance, 3 StopTimeUpdates are provided: - delay of 5 min for stop_sequence 3 - delay of 1 min for stop_sequence 8 - delay of unspecified duration for stop_sequence 10 This will be interpreted as: - stop_sequences 3,4,5,6,7 have delay of 5 min. - stop_sequences 8,9 have delay of 1 min. - stop_sequences 10,... have unknown delay.
boolean hasTimestamp()
optional uint64 timestamp = 4;
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
long getTimestamp()
optional uint64 timestamp = 4;
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
boolean hasDelay()
optional int32 delay = 5;
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
int getDelay()
optional int32 delay = 5;
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
Copyright © 2018. All rights reserved.