Function map_model::connectivity::vehicle_cost [−][src]
pub fn vehicle_cost(
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.