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: StringUniquely identifies the pathway
from_stop_id: StringLocation at which the pathway begins
to_stop_id: StringLocation at which the pathway ends
mode: PathwayModeType of pathway between the specified (from_stop_id, to_stop_id) pair
is_bidirectional: PathwayDirectionTypeIndicates 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§impl Debug for RawPathway
impl Debug for RawPathway
Source§impl Default for RawPathway
impl Default for 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