Struct map_model::raw::RawMap [−][src]
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: MapName
roads: 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: Polygon
gps_bounds: GPSBounds
config: MapConfig
Implementations
impl RawMap
[src]
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]
&self,
id: NodeID
) -> (Polygon, Vec<Polygon>, Vec<(String, Polygon)>)
(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]
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]
&mut self,
id: NodeID,
point: Pt2D
) -> Option<Vec<OriginalRoad>>
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]
&mut self,
short: OriginalRoad
) -> Result<(NodeID, NodeID, Vec<OriginalRoad>, Vec<OriginalRoad>)>
(the surviving intersection, the deleted intersection, deleted roads, new roads)
Trait Implementations
impl<'de> Deserialize<'de> for RawMap
[src]
impl<'de> Deserialize<'de> for RawMap
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for RawMap
impl Send for RawMap
impl Sync for RawMap
impl Unpin for RawMap
impl UnwindSafe for RawMap
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,