pub struct RawMap {Show 14 fields
pub name: MapName,
pub streets: StreetNetwork,
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 census_zones: Vec<(Polygon, CensusZone)>,
pub transit_stops: BTreeMap<String, RawTransitStop>,
pub bus_routes_on_roads: MultiMap<WayID, String>,
pub osm_tags: BTreeMap<WayID, Tags>,
pub extra_road_data: BTreeMap<RoadID, ExtraRoadData>,
pub elevation_per_intersection: BTreeMap<IntersectionID, Distance>,
pub extra_pois: Vec<ExtraPOI>,
}
Fields§
§name: MapName
§streets: StreetNetwork
§buildings: BTreeMap<OsmID, RawBuilding>
§areas: Vec<RawArea>
§parking_lots: Vec<RawParkingLot>
§parking_aisles: Vec<(WayID, Vec<Pt2D>)>
§transit_routes: Vec<RawTransitRoute>
§census_zones: Vec<(Polygon, CensusZone)>
§transit_stops: BTreeMap<String, RawTransitStop>
§bus_routes_on_roads: MultiMap<WayID, String>
Per road, what bus routes run along it?
This is scraped from OSM relations for every map, unlike the more detailed transit_routes
above, which come from GTFS only for a few maps. This is used only to identify roads part
of bus routes. It’s best-effort and not robust to edits or transformations.
extra_road_data: BTreeMap<RoadID, ExtraRoadData>
§elevation_per_intersection: BTreeMap<IntersectionID, Distance>
§extra_pois: Vec<ExtraPOI>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for RawMap
impl<'de> Deserialize<'de> for RawMap
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RawMap
impl RefUnwindSafe for RawMap
impl Send for RawMap
impl Sync for RawMap
impl Unpin for RawMap
impl UnwindSafe for RawMap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more