[−][src]Struct map_model::Map
Implementations
impl Map
[src]
pub fn get_edits(&self) -> &MapEdits
[src]
pub fn get_i_edit(&self, i: IntersectionID) -> EditIntersection
[src]
pub fn save_edits(&self)
[src]
pub fn must_apply_edits(
&mut self,
new_edits: MapEdits,
timer: &mut Timer
) -> (BTreeSet<RoadID>, BTreeSet<TurnID>, BTreeSet<TurnID>, BTreeSet<IntersectionID>)
[src]
&mut self,
new_edits: MapEdits,
timer: &mut Timer
) -> (BTreeSet<RoadID>, BTreeSet<TurnID>, BTreeSet<TurnID>, BTreeSet<IntersectionID>)
pub fn try_apply_edits(&mut self, new_edits: MapEdits, timer: &mut Timer)
[src]
pub fn recalculate_pathfinding_after_edits(&mut self, timer: &mut Timer)
[src]
pub fn incremental_edit_traffic_signal(&mut self, signal: ControlTrafficSignal)
[src]
impl Map
[src]
impl Map
[src]
pub fn new(path: String, timer: &mut Timer) -> Map
[src]
pub fn corrupt_err(path: String, err: Error)
[src]
pub fn blank() -> Map
[src]
pub fn all_roads(&self) -> &Vec<Road>
[src]
pub fn all_lanes(&self) -> &Vec<Lane>
[src]
pub fn all_intersections(&self) -> &Vec<Intersection>
[src]
pub fn all_turns(&self) -> &BTreeMap<TurnID, Turn>
[src]
pub fn all_buildings(&self) -> &Vec<Building>
[src]
pub fn all_areas(&self) -> &Vec<Area>
[src]
pub fn all_parking_lots(&self) -> &Vec<ParkingLot>
[src]
pub fn maybe_get_r(&self, id: RoadID) -> Option<&Road>
[src]
pub fn maybe_get_l(&self, id: LaneID) -> Option<&Lane>
[src]
pub fn maybe_get_i(&self, id: IntersectionID) -> Option<&Intersection>
[src]
pub fn maybe_get_t(&self, id: TurnID) -> Option<&Turn>
[src]
pub fn maybe_get_b(&self, id: BuildingID) -> Option<&Building>
[src]
pub fn maybe_get_pl(&self, id: ParkingLotID) -> Option<&ParkingLot>
[src]
pub fn maybe_get_a(&self, id: AreaID) -> Option<&Area>
[src]
pub fn maybe_get_bs(&self, id: BusStopID) -> Option<&BusStop>
[src]
pub fn maybe_get_stop_sign(
&self,
id: IntersectionID
) -> Option<&ControlStopSign>
[src]
&self,
id: IntersectionID
) -> Option<&ControlStopSign>
pub fn maybe_get_traffic_signal(
&self,
id: IntersectionID
) -> Option<&ControlTrafficSignal>
[src]
&self,
id: IntersectionID
) -> Option<&ControlTrafficSignal>
pub fn maybe_get_br(&self, route: BusRouteID) -> Option<&BusRoute>
[src]
pub fn get_r(&self, id: RoadID) -> &Road
[src]
pub fn get_l(&self, id: LaneID) -> &Lane
[src]
pub fn get_i(&self, id: IntersectionID) -> &Intersection
[src]
pub fn get_t(&self, id: TurnID) -> &Turn
[src]
pub fn get_b(&self, id: BuildingID) -> &Building
[src]
pub fn get_a(&self, id: AreaID) -> &Area
[src]
pub fn get_pl(&self, id: ParkingLotID) -> &ParkingLot
[src]
pub fn get_stop_sign(&self, id: IntersectionID) -> &ControlStopSign
[src]
pub fn get_traffic_signal(&self, id: IntersectionID) -> &ControlTrafficSignal
[src]
pub fn get_turns_in_intersection<'a>(
&'a self,
id: IntersectionID
) -> impl Iterator<Item = &'a Turn> + 'a
[src]
&'a self,
id: IntersectionID
) -> impl Iterator<Item = &'a Turn> + 'a
pub fn get_turns_from_lane(&self, l: LaneID) -> Vec<&Turn>
[src]
pub fn get_turns_to_lane(&self, l: LaneID) -> Vec<&Turn>
[src]
pub fn get_turn_between(
&self,
from: LaneID,
to: LaneID,
parent: IntersectionID
) -> Option<TurnID>
[src]
&self,
from: LaneID,
to: LaneID,
parent: IntersectionID
) -> Option<TurnID>
pub fn get_next_turns_and_lanes<'a>(
&'a self,
from: LaneID,
parent: IntersectionID
) -> impl Iterator<Item = (&'a Turn, &'a Lane)> + 'a
[src]
&'a self,
from: LaneID,
parent: IntersectionID
) -> impl Iterator<Item = (&'a Turn, &'a Lane)> + 'a
pub fn get_turns_for(
&self,
from: LaneID,
constraints: PathConstraints
) -> Vec<&Turn>
[src]
&self,
from: LaneID,
constraints: PathConstraints
) -> Vec<&Turn>
pub fn get_next_roads(&self, from: RoadID) -> impl Iterator<Item = RoadID>
[src]
pub fn get_parent(&self, id: LaneID) -> &Road
[src]
pub fn get_gps_bounds(&self) -> &GPSBounds
[src]
pub fn get_bounds(&self) -> &Bounds
[src]
pub fn get_city_name(&self) -> &String
[src]
pub fn get_name(&self) -> &String
[src]
pub fn all_bus_stops(&self) -> &BTreeMap<BusStopID, BusStop>
[src]
pub fn get_bs(&self, stop: BusStopID) -> &BusStop
[src]
pub fn get_br(&self, route: BusRouteID) -> &BusRoute
[src]
pub fn all_bus_routes(&self) -> &Vec<BusRoute>
[src]
pub fn get_bus_route(&self, name: &str) -> Option<&BusRoute>
[src]
pub fn get_routes_serving_stop(&self, stop: BusStopID) -> Vec<&BusRoute>
[src]
pub fn building_to_road(&self, id: BuildingID) -> &Road
[src]
pub fn all_incoming_borders(&self) -> Vec<&Intersection>
[src]
pub fn all_outgoing_borders(&self) -> Vec<&Intersection>
[src]
pub fn unsaved_edits(&self) -> bool
[src]
pub fn save(&self)
[src]
pub fn find_driving_lane_near_building(&self, b: BuildingID) -> LaneID
[src]
pub fn get_boundary_polygon(&self) -> &Polygon
[src]
pub fn pathfind(&self, req: PathRequest) -> Option<Path>
[src]
pub fn should_use_transit(
&self,
start: Position,
end: Position
) -> Option<(BusStopID, Option<BusStopID>, BusRouteID)>
[src]
&self,
start: Position,
end: Position
) -> Option<(BusStopID, Option<BusStopID>, BusRouteID)>
pub fn get_turn_group(&self, t: TurnID) -> Option<TurnGroupID>
[src]
pub fn find_r_by_osm_id(&self, id: OriginalRoad) -> Result<RoadID, String>
[src]
pub fn find_i_by_osm_id(&self, id: NodeID) -> Result<IntersectionID, String>
[src]
pub fn find_b_by_osm_id(&self, id: OsmID) -> Option<BuildingID>
[src]
pub fn find_br(&self, id: RelationID) -> Option<BusRouteID>
[src]
pub fn right_shift(
&self,
pl: PolyLine,
width: Distance
) -> Result<PolyLine, String>
[src]
&self,
pl: PolyLine,
width: Distance
) -> Result<PolyLine, String>
pub fn must_right_shift(&self, pl: PolyLine, width: Distance) -> PolyLine
[src]
pub fn left_shift(
&self,
pl: PolyLine,
width: Distance
) -> Result<PolyLine, String>
[src]
&self,
pl: PolyLine,
width: Distance
) -> Result<PolyLine, String>
pub fn must_left_shift(&self, pl: PolyLine, width: Distance) -> PolyLine
[src]
pub fn right_shift_line(&self, line: Line, width: Distance) -> Line
[src]
pub fn left_shift_line(&self, line: Line, width: Distance) -> Line
[src]
pub fn driving_side_angle(&self, a: Angle) -> Angle
[src]
pub fn get_driving_side(&self) -> DrivingSide
[src]
pub fn hack_override_offstreet_spots(&mut self, spots_per_bldg: usize)
[src]
pub fn hack_override_offstreet_spots_individ(
&mut self,
b: BuildingID,
spots: usize
)
[src]
&mut self,
b: BuildingID,
spots: usize
)
pub fn hack_override_bldg_type(
&mut self,
b: BuildingID,
bldg_type: BuildingType
)
[src]
&mut self,
b: BuildingID,
bldg_type: BuildingType
)
pub fn hack_override_orig_spawn_times(
&mut self,
br: BusRouteID,
times: Vec<Time>
)
[src]
&mut self,
br: BusRouteID,
times: Vec<Time>
)
pub fn get_languages(&self) -> BTreeSet<&str>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Map
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Map
[src]
Auto Trait Implementations
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
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>,