Struct gtfs_structures::StopTime
source · [−]pub struct StopTime {
pub arrival_time: Option<u32>,
pub stop: Arc<Stop>,
pub departure_time: Option<u32>,
pub pickup_type: PickupDropOffType,
pub drop_off_type: PickupDropOffType,
pub stop_sequence: u16,
pub stop_headsign: Option<String>,
pub continuous_pickup: ContinuousPickupDropOff,
pub continuous_drop_off: ContinuousPickupDropOff,
pub shape_dist_traveled: Option<f32>,
pub timepoint: TimepointType,
}
Expand description
The moment where a vehicle, running on Trip stops at a Stop. See https://gtfs.org/reference/static/#stopstxt
Fields
arrival_time: Option<u32>
Arrival time of the stop time. It’s an option since the intermediate stops can have have no arrival and this arrival needs to be interpolated
stop: Arc<Stop>
Stop where the vehicle stops
departure_time: Option<u32>
Departure time of the stop time. It’s an option since the intermediate stops can have have no departure and this departure needs to be interpolated
pickup_type: PickupDropOffType
Indicates pickup method
drop_off_type: PickupDropOffType
Indicates drop off method
stop_sequence: u16
Order of stops for a particular trip. The values must increase along the trip but do not need to be consecutive
stop_headsign: Option<String>
Text that appears on signage identifying the trip’s destination to riders
continuous_pickup: ContinuousPickupDropOff
Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path
continuous_drop_off: ContinuousPickupDropOff
Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path
shape_dist_traveled: Option<f32>
Actual distance traveled along the associated shape, from the first stop to the stop specified in this record. This field specifies how much of the shape to draw between any two stops during a trip
timepoint: TimepointType
Indicates if arrival and departure times for a stop are strictly adhered to by the vehicle or if they are instead approximate and/or interpolated times
Implementations
sourceimpl StopTime
impl StopTime
sourcepub fn from(stop_time_gtfs: &RawStopTime, stop: Arc<Stop>) -> Self
pub fn from(stop_time_gtfs: &RawStopTime, stop: Arc<Stop>) -> Self
Creates StopTime by linking a RawStopTime::stop_id to the actual Stop
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StopTime
impl Send for StopTime
impl Sync for StopTime
impl Unpin for StopTime
impl UnwindSafe for StopTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more