Struct map_model::pathfind::pathfinder::Pathfinder [−][src]
pub struct Pathfinder { car_graph: VehiclePathfinder, bike_graph: VehiclePathfinder, bus_graph: VehiclePathfinder, train_graph: VehiclePathfinder, walking_graph: SidewalkPathfinder, walking_with_transit_graph: SidewalkPathfinder, params: RoutingParams, }
Fields
car_graph: VehiclePathfinder
bike_graph: VehiclePathfinder
bus_graph: VehiclePathfinder
train_graph: VehiclePathfinder
walking_graph: SidewalkPathfinder
walking_with_transit_graph: SidewalkPathfinder
params: RoutingParams
Implementations
Quickly create an invalid pathfinder, just to make borrow checking / initialization order work.
pub fn new(
map: &Map,
params: RoutingParams,
engine: CreateEngine<'_>,
timer: &mut Timer<'_>
) -> Pathfinder
[src]pub fn new_for_one_mode(
map: &Map,
params: RoutingParams,
engine: CreateEngine<'_>,
constraints: PathConstraints,
timer: &mut Timer<'_>
) -> Pathfinder
[src]
pub fn new_for_one_mode(
map: &Map,
params: RoutingParams,
engine: CreateEngine<'_>,
constraints: PathConstraints,
timer: &mut Timer<'_>
) -> Pathfinder
[src]Create a new Pathfinder with custom routing params that can only serve one mode.
Finds a path from a start to an end for a certain type of agent.
pub fn pathfind_with_params(
&self,
req: PathRequest,
params: &RoutingParams,
map: &Map
) -> Option<PathV2>
[src]
pub fn pathfind_with_params(
&self,
req: PathRequest,
params: &RoutingParams,
map: &Map
) -> Option<PathV2>
[src]Finds a path from a start to an end for a certain type of agent. May use custom routing parameters.
pub fn all_costs_from(
&self,
req: PathRequest,
map: &Map
) -> Option<(Duration, HashMap<DirectedRoadID, Duration>)>
[src]Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Pathfinder
impl Send for Pathfinder
impl Sync for Pathfinder
impl Unpin for Pathfinder
impl UnwindSafe for Pathfinder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self