com.google.transit.realtime
Interface GtfsRealtime.TripUpdateOrBuilder
- All Superinterfaces:
- com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
- GtfsRealtime.TripUpdate, GtfsRealtime.TripUpdate.Builder
- Enclosing class:
- GtfsRealtime
public static interface GtfsRealtime.TripUpdateOrBuilder
- extends com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>
| Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder |
getDefaultInstanceForType, getExtension, getExtension, getExtensionCount, hasExtension |
| Methods inherited from interface com.google.protobuf.MessageOrBuilder |
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof |
| Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder |
isInitialized |
hasTrip
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.
getTrip
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.
getTripOrBuilder
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.
hasVehicle
boolean hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
getVehicle
GtfsRealtime.VehicleDescriptor getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
getVehicleOrBuilder
GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
Additional information on the vehicle that is serving this trip.
getStopTimeUpdateList
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.
getStopTimeUpdate
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.
getStopTimeUpdateCount
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.
getStopTimeUpdateOrBuilderList
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.
getStopTimeUpdateOrBuilder
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.
hasTimestamp
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).
getTimestamp
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).
hasDelay
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.
getDelay
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 © 2015. All Rights Reserved.