Indexing
Functions for converting between latitude/longitude coordinates and H3 cell indexes.
Corresponds to the H3 C API Indexing section.
FastH3.latLngToCell — Function
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
FastH3.cellToLatLng — Function
cellToLatLng(h::H3Index) -> Tuple{H3Error, LatLng}Convert an H3 cell to its center latitude/longitude.
See also the H3 C API: cellToLatLng
FastH3.cellToBoundary — Function
cellToBoundary(h::H3Index) -> Tuple{H3Error, CellBoundary}Compute the cell boundary (vertices) for an H3 cell.
See also the H3 C API: cellToBoundary