[−][src]Struct map_model::raw::RawMap
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]
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]
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 Debug 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>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,