Back to Elasticsearch

To Geohex

docs/reference/query-languages/esql/kibana/docs/functions/to_geohex.md

9.4.4483 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

TO GEOHEX

Converts an input value to a geohex value. A string will only be successfully converted if it respects the geohex format, as described for the geohex grid aggregation.

esql
ROW string = "841f059ffffffff"
| EVAL geohex = TO_GEOHEX(string)