Indexing

Functions for converting between latitude/longitude coordinates and H3 cell indexes.

Corresponds to the H3 C API Indexing section.

FastH3.latLngToCellFunction
latLngToCell(g::LatLng, res::Int) -> Tuple{H3Error, H3Index}

Convert a latitude/longitude pair to the containing H3 cell at the given resolution.

See also the H3 C API: latLngToCell

source