Struct convert_osm::extract::OsmExtract
source · [−]pub struct OsmExtract {
pub roads: Vec<(WayID, RawRoad)>,
pub traffic_signals: HashMap<HashablePt2D, Direction>,
pub osm_node_ids: HashMap<HashablePt2D, NodeID>,
pub simple_turn_restrictions: Vec<(RestrictionType, WayID, NodeID, WayID)>,
pub complicated_turn_restrictions: Vec<(RelationID, WayID, WayID, WayID)>,
pub amenities: Vec<(Pt2D, Amenity)>,
pub crosswalks: HashSet<HashablePt2D>,
}
Fields
roads: Vec<(WayID, RawRoad)>
Unsplit roads
traffic_signals: HashMap<HashablePt2D, Direction>
Traffic signals to the direction they apply
osm_node_ids: HashMap<HashablePt2D, NodeID>
simple_turn_restrictions: Vec<(RestrictionType, WayID, NodeID, WayID)>
(ID, restriction type, from way ID, via node ID, to way ID)
complicated_turn_restrictions: Vec<(RelationID, WayID, WayID, WayID)>
(relation ID, from way ID, via way ID, to way ID)
amenities: Vec<(Pt2D, Amenity)>
(location, amenity)
crosswalks: HashSet<HashablePt2D>
Crosswalks located at these points, which should be on a RawRoad’s center line
Auto Trait Implementations
impl RefUnwindSafe for OsmExtract
impl Send for OsmExtract
impl Sync for OsmExtract
impl Unpin for OsmExtract
impl UnwindSafe for OsmExtract
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self