Vertexes
Functions for working with cell vertex indexes.
Corresponds to the H3 C API Vertex section.
FastH3.cellToVertex — Function
cellToVertex(origin::H3Index, vertexNum::Int) -> (H3Error, H3Index)Get a vertex H3 index for vertex number vertexNum (0-indexed) of cell origin.
See also the H3 C API: cellToVertex
FastH3.cellToVertexes — Function
cellToVertexes(op::F, origin::H3Index) -> H3Error where {F}Call op(vertex) for each vertex H3 index of the cell (no result vector allocated).
See also the H3 C API: cellToVertexes
cellToVertexes(origin::H3Index) -> (H3Error, Vector{H3Index})Get all vertex H3 indexes for a cell (5 for pentagons, 6 for hexagons).
See also the H3 C API: cellToVertexes
FastH3.vertexToLatLng — Function
vertexToLatLng(vertex::H3Index) -> (H3Error, LatLng)Get the latitude/longitude of a vertex H3 index.
See also the H3 C API: vertexToLatLng
FastH3.isValidVertex — Function
isValidVertex(vertex::H3Index) -> BoolCheck whether an H3 index represents a valid vertex.
See also the H3 C API: isValidVertex