pub struct GTFSStopTime {Show 18 fields
pub trip_id: String,
pub arrival_time: Option<String>,
pub departure_time: Option<String>,
pub stop_id: Option<String>,
pub location_group_id: Option<String>,
pub location_id: Option<String>,
pub stop_sequence: usize,
pub stop_headsign: Option<String>,
pub start_pickup_drop_off_window: Option<String>,
pub end_pickup_drop_off_window: Option<String>,
pub pickup_type: Option<i8>,
pub drop_off_type: Option<i8>,
pub continuous_pickup: Option<i8>,
pub continuous_drop_off: Option<i8>,
pub shape_dist_traveled: Option<usize>,
pub timepoint: Option<i8>,
pub pickup_booking_rule_id: Option<String>,
pub drop_off_booking_rule_id: Option<String>,
}Expand description
§Stop Time Information
Required - Times that a vehicle arrives at and departs from stops for each trip.
Fields§
§trip_id: StringRequired
Identifies a trip (trips.trip_id).
arrival_time: Option<String>Conditionally Required
Arrival time at the stop in HH:MM:SS (local) or possibly > 24:00:00 after midnight.
Required for the first/last stop of the trip or if timepoint=1.
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined.
departure_time: Option<String>Conditionally Required
Departure time at the stop in HH:MM:SS (local) or possibly > 24:00:00 after midnight.
Required if timepoint=1.
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined.
stop_id: Option<String>Conditionally Required
References a stop (stops.stop_id). Must be a location_type of 0 or empty.
Required if neither location_group_id nor location_id is used.
Forbidden if location_group_id or location_id is defined.
location_group_id: Option<String>Conditionally Forbidden
References a location group (location_groups.location_group_id).
Forbidden if stop_id or location_id is defined.
location_id: Option<String>Conditionally Forbidden
References a GeoJSON location ID (locations.geojson).
Forbidden if stop_id or location_group_id is defined.
stop_sequence: usizeRequired Order of stops (or location groups, or GeoJSON locations) for this trip. Must increase along the trip, but need not be consecutive.
stop_headsign: Option<String>Optional Overrides the trip’s headsign at this specific stop.
start_pickup_drop_off_window: Option<String>Conditionally Required
Time on-demand service becomes available at this location/stop/location group.
Required if end_pickup_drop_off_window is defined, or if location_group_id or location_id is used.
Forbidden if arrival_time or departure_time is defined.
end_pickup_drop_off_window: Option<String>Conditionally Required
Time on-demand service ends at this location/stop/location group.
Required if start_pickup_drop_off_window is defined, or if location_group_id or location_id is used.
Forbidden if arrival_time or departure_time is defined.
pickup_type: Option<i8>Conditionally Forbidden
Pickup method:
0 or empty = Regular, 1 = None, 2 = Phone Agency, 3 = Coordinate with Driver
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined (for 0 or 3).
drop_off_type: Option<i8>Conditionally Forbidden
Drop-off method:
0 or empty = Regular, 1 = None, 2 = Phone Agency, 3 = Coordinate with Driver
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined (for 0).
continuous_pickup: Option<i8>Conditionally Forbidden
Continuous pickup from this stop_time to the next.
0 = Continuous, 1 or empty = None, 2 = Phone Agency, 3 = Coordinate with Driver
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined.
continuous_drop_off: Option<i8>Conditionally Forbidden
Continuous drop-off from this stop_time to the next.
0 = Continuous, 1 or empty = None, 2 = Phone Agency, 3 = Coordinate with Driver
Forbidden if start_pickup_drop_off_window or end_pickup_drop_off_window are defined.
shape_dist_traveled: Option<usize>Optional Distance traveled along the associated shape from the first stop to this record’s stop. Must be in the same units used in shapes.txt.
timepoint: Option<i8>Optional 0 = Times are approximate, 1 = Times are exact.
pickup_booking_rule_id: Option<String>Optional
Boarding booking rule reference (booking_rules.booking_rule_id).
Recommended if pickup_type=2.
drop_off_booking_rule_id: Option<String>Optional
Alighting booking rule reference (booking_rules.booking_rule_id).
Recommended if drop_off_type=2.
Implementations§
Source§impl GTFSStopTime
impl GTFSStopTime
Sourcepub fn new(source: &str) -> Vec<GTFSStopTime>
pub fn new(source: &str) -> Vec<GTFSStopTime>
Create a new GTFSStopTime
Sourcepub fn pickup_type(&self) -> Option<GTFSPickupDropOffType>
pub fn pickup_type(&self) -> Option<GTFSPickupDropOffType>
Get the pickup_type
Sourcepub fn drop_off_type(&self) -> Option<GTFSPickupDropOffType>
pub fn drop_off_type(&self) -> Option<GTFSPickupDropOffType>
Get the drop_off_type
Sourcepub fn continuous_pickup(&self) -> Option<GTFSContinuousPickupDropOff>
pub fn continuous_pickup(&self) -> Option<GTFSContinuousPickupDropOff>
Get the continuous_pickup
Sourcepub fn continuous_drop_off(&self) -> Option<GTFSContinuousPickupDropOff>
pub fn continuous_drop_off(&self) -> Option<GTFSContinuousPickupDropOff>
Get the continuous_drop_off
Sourcepub fn timepoint(&self) -> Option<GTFSTimepoint>
pub fn timepoint(&self) -> Option<GTFSTimepoint>
Get the timepoint
Trait Implementations§
Source§impl Clone for GTFSStopTime
impl Clone for GTFSStopTime
Source§fn clone(&self) -> GTFSStopTime
fn clone(&self) -> GTFSStopTime
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSStopTime
impl Debug for GTFSStopTime
Source§impl Default for GTFSStopTime
impl Default for GTFSStopTime
Source§fn default() -> GTFSStopTime
fn default() -> GTFSStopTime
Source§impl From<&Map<String, ValueType>> for GTFSStopTime
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSStopTime
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSStopTime
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSStopTime
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSStopTime> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSStopTime> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSStopTime) -> MValue
fn from(value: GTFSStopTime) -> MValue
Source§impl From<GTFSStopTime> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSStopTime> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSStopTime) -> ValueType
fn from(value: GTFSStopTime) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSStopTime
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSStopTime
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSStopTime
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSStopTime
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSStopTime
impl PartialEq for GTFSStopTime
impl MValueCompatible for GTFSStopTime
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSStopTime
Auto Trait Implementations§
impl Freeze for GTFSStopTime
impl RefUnwindSafe for GTFSStopTime
impl Send for GTFSStopTime
impl Sync for GTFSStopTime
impl Unpin for GTFSStopTime
impl UnwindSafe for GTFSStopTime
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().