Enum gtfs_structures::LocationType
source · pub enum LocationType {
StopPoint,
StopArea,
StationEntrance,
GenericNode,
BoardingArea,
Unknown(i16),
}
Expand description
Describes the kind of [Stop]. See https://gtfs.org/reference/static/#stopstxt location_type
Variants§
StopPoint
Stop (or Platform). A location where passengers board or disembark from a transit vehicle. Is called a platform when defined within a parent_station
StopArea
Station. A physical structure or area that contains one or more platform
StationEntrance
A location where passengers can enter or exit a station from the street. If an entrance/exit belongs to multiple stations, it can be linked by pathways to both, but the data provider must pick one of them as parent
GenericNode
A location within a station, not matching any other [Stop::location_type], which can be used to link together pathways define in pathways.txt.
BoardingArea
A specific location on a platform, where passengers can board and/or alight vehicles
Unknown(i16)
An unknown value
Trait Implementations§
source§impl Clone for LocationType
impl Clone for LocationType
source§fn clone(&self) -> LocationType
fn clone(&self) -> LocationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationType
impl Debug for LocationType
source§impl Default for LocationType
impl Default for LocationType
source§impl<'de> Deserialize<'de> for LocationType
impl<'de> Deserialize<'de> for LocationType
source§fn deserialize<D>(deserializer: D) -> Result<LocationType, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<LocationType, D::Error>where
D: Deserializer<'de>,
source§impl Hash for LocationType
impl Hash for LocationType
source§impl PartialEq for LocationType
impl PartialEq for LocationType
source§fn eq(&self, other: &LocationType) -> bool
fn eq(&self, other: &LocationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocationType
impl Serialize for LocationType
impl Copy for LocationType
impl Eq for LocationType
impl StructuralPartialEq for LocationType
Auto Trait Implementations§
impl Freeze for LocationType
impl RefUnwindSafe for LocationType
impl Send for LocationType
impl Sync for LocationType
impl Unpin for LocationType
impl UnwindSafe for LocationType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.