import type { FunctionDefinition } from '../../definition_types'; /** * Calculates the `geohex`, the H3 cell-id, of the supplied geo_point at the specified precision. * The result is long encoded. * Use `TO_STRING` * to convert the result to a string, * `TO_LONG` * to convert it to a `long`, or * `TO_GEOSHAPE` * to calculate the `geo_shape` bounding geometry. * * These functions are related to the `geo_grid` query * and the `geohex_grid` aggregation. * * @example * FROM airports * | EVAL geohex = ST_GEOHEX(location, 1) * | STATS * count = COUNT(geohex), * centroid = ST_CENTROID_AGG(location) * BY geohex * | WHERE count >= 10 * | EVAL geohexString = TO_STRING(geohex) * | KEEP count, centroid, geohexString * | SORT count DESC, geohexString ASC */ declare const definition: FunctionDefinition; export default definition; //# sourceMappingURL=st_geohex.d.ts.map