pub struct GTFSRealtimeVehiclePosition {
pub trip: Option<GTFSRealtimeTripDescriptor>,
pub position: GTFSRealtimePosition,
pub current_stop_sequence: Option<u32>,
pub current_status: GTFSVehicleStopStatus,
pub timestamp: Option<Date>,
pub congestion_level: GTFSRealtimeCongestionLevel,
pub stop_id: Option<String>,
pub vehicle: Option<GTFSRealtimeVehicleDescriptor>,
pub occupancy_status: Option<GTFSRealtimeOccupancyStatus>,
pub occupancy_percentage: Option<u32>,
pub multi_carriage_details: Vec<GTFSRealtimeMultiCarriageDetails>,
}Expand description
Realtime positioning information for a given vehicle.
Fields§
§trip: Option<GTFSRealtimeTripDescriptor>The Trip that this vehicle is serving. Can be empty or partial if the vehicle can not be identified with a given trip instance.
position: GTFSRealtimePositionCurrent position of this vehicle. */
current_stop_sequence: Option<u32>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.
current_status: GTFSVehicleStopStatusThe exact status of the vehicle with respect to the current stop. Ignored if current_stop_sequence is missing.
timestamp: Option<Date>Moment at which the vehicle’s position was measured. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
congestion_level: GTFSRealtimeCongestionLevelCongestion level that is affecting this vehicle.
stop_id: Option<String>Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.
vehicle: Option<GTFSRealtimeVehicleDescriptor>7 Additional information on the vehicle that is serving this trip.
occupancy_status: Option<GTFSRealtimeOccupancyStatus>If multi_carriage_status is populated with per-carriage OccupancyStatus, then this field should describe the entire vehicle with all carriages accepting passengers considered.
occupancy_percentage: Option<u32>A percentage value indicating the degree of passenger occupancy in the vehicle. The values are represented as an integer without decimals. 0 means 0% and 100 means 100%. The value 100 should represent the total maximum occupancy the vehicle was designed for, including both seated and standing capacity, and current operating regulations allow. The value may exceed 100 if there are more passengers than the maximum designed capacity. The precision of occupancy_percentage should be low enough that individual passengers cannot be tracked boarding or alighting the vehicle. If multi_carriage_status is populated with per-carriage occupancy_percentage, then this field should describe the entire vehicle with all carriages accepting passengers considered. This field is still experimental, and subject to change. It may be formally adopted in the future.
multi_carriage_details: Vec<GTFSRealtimeMultiCarriageDetails>Details of the multiple carriages of this given vehicle. The first occurrence represents the first carriage of the vehicle, given the current direction of travel. The number of occurrences of the multi_carriage_details field represents the number of carriages of the vehicle. It also includes non boardable carriages, like engines, maintenance carriages, etc… as they provide valuable information to passengers about where to stand on a platform. This message/field is still experimental, and subject to change. It may be formally adopted in the future.
Trait Implementations§
Source§impl Clone for GTFSRealtimeVehiclePosition
impl Clone for GTFSRealtimeVehiclePosition
Source§fn clone(&self) -> GTFSRealtimeVehiclePosition
fn clone(&self) -> GTFSRealtimeVehiclePosition
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeVehiclePosition
impl Debug for GTFSRealtimeVehiclePosition
Source§impl Default for GTFSRealtimeVehiclePosition
impl Default for GTFSRealtimeVehiclePosition
Source§fn default() -> GTFSRealtimeVehiclePosition
fn default() -> GTFSRealtimeVehiclePosition
Source§impl ProtoRead for GTFSRealtimeVehiclePosition
Read in the contents of the GTFSRealtimeVehiclePosition
impl ProtoRead for GTFSRealtimeVehiclePosition
Read in the contents of the GTFSRealtimeVehiclePosition
impl StructuralPartialEq for GTFSRealtimeVehiclePosition
Auto Trait Implementations§
impl Freeze for GTFSRealtimeVehiclePosition
impl RefUnwindSafe for GTFSRealtimeVehiclePosition
impl Send for GTFSRealtimeVehiclePosition
impl Sync for GTFSRealtimeVehiclePosition
impl Unpin for GTFSRealtimeVehiclePosition
impl UnwindSafe for GTFSRealtimeVehiclePosition
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().