Function map_model::pathfind::vehicles::vehicle_cost_v2 [−][src]
pub fn vehicle_cost_v2(
dr: DirectedRoadID,
mvmnt: MovementID,
constraints: PathConstraints,
params: &RoutingParams,
map: &Map
) -> Duration
This returns the pathfinding cost of crossing one road and turn. This is also expressed in units of time. It factors in the ideal time to cross the space, along with penalties for entering an access-restricted zone, taking an unprotected turn, and so on.