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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.