Table of Contents

Indexing functions

These function are used for finding the H3 index containing coordinates, and for finding the center and boundary of H3 indexes.


H3Index geoToH3(const GeoCoord *g, int res);

Indexes the location at the specified resolution, returning the index of the cell containing the location.

Returns 0 on error.


void h3ToGeo(H3Index h3, GeoCoord *g);

Finds the centroid of the index.


void h3ToGeoBoundary(H3Index h3, GeoBoundary *gp);

Finds the boundary of the index.