Struct raw_map::RawMap[][src]

pub struct RawMap {
    pub name: MapName,
    pub roads: BTreeMap<OriginalRoad, RawRoad>,
    pub intersections: BTreeMap<NodeID, RawIntersection>,
    pub buildings: BTreeMap<OsmID, RawBuilding>,
    pub areas: Vec<RawArea>,
    pub parking_lots: Vec<RawParkingLot>,
    pub parking_aisles: Vec<(WayID, Vec<Pt2D>)>,
    pub transit_routes: Vec<RawTransitRoute>,
    pub transit_stops: BTreeMap<String, RawTransitStop>,
    pub boundary_polygon: Polygon,
    pub gps_bounds: GPSBounds,
    pub config: MapConfig,
}

Fields

name: MapNameroads: BTreeMap<OriginalRoad, RawRoad>intersections: BTreeMap<NodeID, RawIntersection>buildings: BTreeMap<OsmID, RawBuilding>areas: Vec<RawArea>parking_lots: Vec<RawParkingLot>parking_aisles: Vec<(WayID, Vec<Pt2D>)>transit_routes: Vec<RawTransitRoute>transit_stops: BTreeMap<String, RawTransitStop>boundary_polygon: Polygongps_bounds: GPSBoundsconfig: MapConfig

Implementations

A heuristic to find short roads near traffic signals

Returns (the surviving intersection, the deleted intersection, deleted roads, new roads)

Run a sequence of transformations to the RawMap before converting it to a full Map.

We don’t want to run these during the OSM->RawMap import stage, because we want to use the map_editor tool to debug the RawMap.

(Intersection polygon, polygons for roads, list of labeled polygons to debug)

Generate the trimmed PolyLine for a single RawRoad by calculating both intersections

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

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

Performs the conversion.

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

Performs the conversion.

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.