Skip to main content

route_fixed_legs

Function route_fixed_legs 

Source
pub fn route_fixed_legs(
    router: &mut ClosedRouter,
    wp_positions: &BTreeMap<PathOrdinal, Point>,
    start: Point,
    wp_ids: &[PathOrdinal],
) -> FixedLegs
Expand description

Route the fixed start → … → last waypoint portion of an in-progress route. Identical to the corresponding legs of RouteRequest::route with SelfCost::Skip. wp_positions must contain every id in wp_ids.