[][src]Struct map_model::raw::RawMap

pub struct RawMap {
    pub name: MapName,
    pub roads: BTreeMap<OriginalRoad, RawRoad>,
    pub intersections: BTreeMap<NodeID, RawIntersection>,
    pub buildings: BTreeMap<OsmID, RawBuilding>,
    pub bus_routes: Vec<RawBusRoute>,
    pub areas: Vec<RawArea>,
    pub parking_lots: Vec<RawParkingLot>,
    pub parking_aisles: Vec<(WayID, Vec<Pt2D>)>,
    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>bus_routes: Vec<RawBusRoute>areas: Vec<RawArea>parking_lots: Vec<RawParkingLot>parking_aisles: Vec<(WayID, Vec<Pt2D>)>boundary_polygon: Polygongps_bounds: GPSBoundsconfig: MapConfig

Implementations

impl RawMap[src]

pub fn blank(name: MapName) -> RawMap[src]

pub fn roads_per_intersection(&self, i: NodeID) -> Vec<OriginalRoad>[src]

pub fn new_osm_node_id(&self, start: i64) -> NodeID[src]

pub fn new_osm_way_id(&self, start: i64) -> WayID[src]

pub fn preview_intersection(
    &self,
    id: NodeID
) -> (Polygon, Vec<Polygon>, Vec<(String, Polygon)>)
[src]

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

pub fn trimmed_road_geometry(&self, road: OriginalRoad) -> Option<PolyLine>[src]

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

pub fn save(&self)[src]

pub fn get_city_name(&self) -> &CityName[src]

impl RawMap[src]

pub fn can_delete_intersection(&self, i: NodeID) -> bool[src]

pub fn delete_intersection(&mut self, id: NodeID)[src]

pub fn move_intersection(
    &mut self,
    id: NodeID,
    point: Pt2D
) -> Option<Vec<OriginalRoad>>
[src]

pub fn closest_intersection(&self, pt: Pt2D) -> NodeID[src]

pub fn path_dist_to(&self, from: NodeID, to: NodeID) -> Option<Distance>[src]

pub fn merge_short_road(
    &mut self,
    short: OriginalRoad
) -> Result<(NodeID, NodeID, Vec<OriginalRoad>, Vec<OriginalRoad>)>
[src]

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

Trait Implementations

impl Debug for RawMap[src]

impl<'de> Deserialize<'de> for RawMap[src]

impl Serialize for RawMap[src]

Auto Trait Implementations

impl RefUnwindSafe for RawMap[src]

impl Send for RawMap[src]

impl Sync for RawMap[src]

impl Unpin for RawMap[src]

impl UnwindSafe for RawMap[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,