Struct gtfs_structures::Pathway
source · pub struct Pathway {
pub id: String,
pub to_stop_id: String,
pub mode: PathwayMode,
pub is_bidirectional: PathwayDirectionType,
pub length: Option<f32>,
pub traversal_time: Option<u32>,
pub stair_count: Option<i32>,
pub max_slope: Option<f32>,
pub min_width: Option<f32>,
pub signposted_as: Option<String>,
pub reversed_signposted_as: Option<String>,
}
Expand description
Pathway going from a stop to another.
Fields§
§id: String
Uniquely identifies the pathway
to_stop_id: String
Location at which the pathway ends
mode: PathwayMode
Type of pathway between the specified (from_stop_id, to_stop_id) pair
is_bidirectional: PathwayDirectionType
Indicates in which direction the pathway can be used
length: Option<f32>
Horizontal length in meters of the pathway from the origin location to the destination location
traversal_time: Option<u32>
Average time in seconds needed to walk through the pathway from the origin location to the destination location
stair_count: Option<i32>
Number of stairs of the pathway
max_slope: Option<f32>
Maximum slope ratio of the pathway
min_width: Option<f32>
Minimum width of the pathway in meters
signposted_as: Option<String>
String of text from physical signage visible to transit riders
reversed_signposted_as: Option<String>
Same than the signposted_as field, but when the pathways is used backward
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pathway
impl<'de> Deserialize<'de> for Pathway
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RawPathway> for Pathway
impl From<RawPathway> for Pathway
source§fn from(raw: RawPathway) -> Self
fn from(raw: RawPathway) -> Self
Converts from a RawPathway to a Pathway
source§impl Type for Pathway
impl Type for Pathway
source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
Auto Trait Implementations§
impl Freeze for Pathway
impl RefUnwindSafe for Pathway
impl Send for Pathway
impl Sync for Pathway
impl Unpin for Pathway
impl UnwindSafe for Pathway
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
Mutably borrows from an owned value. Read more