pub trait ShortestPath<W> {
    fn shortest_path<I, OPT: ShortestPathOptions>(
        &self,
        origin_cell: H3Cell,
        destination_cells: I,
        options: &OPT
    ) -> Result<Vec<Path<W>>, Error>
    where
        I: IntoIterator,
        I::Item: Borrow<H3Cell>
; }
Expand description

Implements a simple Dijkstra shortest path route finding.

While this is not the most efficient routing algorithm, it has the benefit of finding the nearest destinations first. So it can be used to answer questions like “which are the N nearest destinations” using a large amount of possible destinations.

Required Methods§

Implementors§