Back to Elasticsearch

To Geopoint

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

9.4.2430 B
Original Source

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

TO GEOPOINT

Converts an input value to a geo_point value. A string will only be successfully converted if it respects the WKT Point format.

esql
ROW wkt = "POINT(42.97109630194 14.7552534413725)"
| EVAL pt = TO_GEOPOINT(wkt)