[][src]Function pathfinder::map::network::path_shortest_leg

pub fn path_shortest_leg<'a>(
    network: &'a Network<Node>,
    start: Node,
    goal: Node
) -> Result<Vec<Node>>

Creates a path using the 'shortest leg' in the journey at each stop.

The shorest leg means that for every occurence of a path, the alternatives are sorted and the shortest is always selected.

Errors

The path could not be found.