import type { FunctionDefinition } from '../../definition_types'; /** * Calculates the `geohash` 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 `geohash_grid` aggregation. * * @example * FROM airports * | EVAL geohash = ST_GEOHASH(location, 1) * | STATS * count = COUNT(geohash), * centroid = ST_CENTROID_AGG(location) * BY geohash * | WHERE count >= 10 * | EVAL geohashString = TO_STRING(geohash) * | KEEP count, centroid, geohashString * | SORT count DESC, geohashString ASC */ declare const definition: FunctionDefinition; export default definition; //# sourceMappingURL=st_geohash.d.ts.map