Struct gtfs_structures::RawPathway
source · pub struct RawPathway {
pub id: String,
pub from_stop_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
A graph representation to describe subway or train, with nodes (the locations) and edges (the pathways).
Fields§
§id: String
Uniquely identifies the pathway
from_stop_id: String
Location at which the pathway begins
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 Clone for RawPathway
impl Clone for RawPathway
source§fn clone(&self) -> RawPathway
fn clone(&self) -> RawPathway
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RawPathway
impl Debug for RawPathway
source§impl Default for RawPathway
impl Default for RawPathway
source§fn default() -> RawPathway
fn default() -> RawPathway
source§impl<'de> Deserialize<'de> for RawPathway
impl<'de> Deserialize<'de> for RawPathway
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>,
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