[−][src]Struct map_model::raw::RawMap
Fields
city_name: String
name: String
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(city_name: &str, name: &str) -> 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,
timer: &mut Timer
) -> (Polygon, Vec<Polygon>, Vec<(String, Polygon)>)
[src]
&self,
id: NodeID,
timer: &mut Timer
) -> (Polygon, Vec<Polygon>, Vec<(String, Polygon)>)
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]
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
impl Send for RawMap
impl Sync for RawMap
impl Unpin for RawMap
impl UnwindSafe for RawMap
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,
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, 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.
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.
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>,