Directed Edges

Functions for working with directed edges between neighboring H3 cells.

Corresponds to the H3 C API Directed Edges section.

FastH3.originToDirectedEdgesFunction
originToDirectedEdges(op::F, origin::H3Index) -> H3Error where {F}

Call op(edge) for each directed edge originating from the cell (no result vector allocated).

See also the H3 C API: originToDirectedEdges

source
originToDirectedEdges(origin::H3Index) -> (H3Error, Vector{H3Index})

Get all directed edges originating from a cell (6 for hexagons, 5 for pentagons).

See also the H3 C API: originToDirectedEdges

source
FastH3.reverseDirectedEdgeFunction
reverseDirectedEdge(edge::H3Index) -> (H3Error, H3Index)

Get the directed edge in the reverse direction (swapping origin and destination).

source