Struct raw_map::RawRoad [−][src]
pub struct RawRoad {
pub center_points: Vec<Pt2D>,
pub scale_width: f64,
pub osm_tags: Tags,
pub turn_restrictions: Vec<(RestrictionType, OriginalRoad)>,
pub complicated_turn_restrictions: Vec<(OriginalRoad, OriginalRoad)>,
pub percent_incline: f64,
pub crosswalk_forward: bool,
pub crosswalk_backward: bool,
}
Fields
center_points: Vec<Pt2D>
This is effectively a PolyLine, except there’s a case where we need to plumb forward cul-de-sac roads for roundabout handling. No transformation of these points whatsoever has happened.
scale_width: f64
Multiply the width of each lane by this ratio, to prevent overlapping roads.
turn_restrictions: Vec<(RestrictionType, OriginalRoad)>
complicated_turn_restrictions: Vec<(OriginalRoad, OriginalRoad)>
(via, to). For turn restrictions where ‘via’ is an entire road. Only BanTurns.
percent_incline: f64
crosswalk_forward: bool
Is there a tagged crosswalk near each end of the road?
crosswalk_backward: bool
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for RawRoad
impl UnwindSafe for RawRoad
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self