geo_distance does not support GeoJSON for points #86834
Labels
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Defining points using GeoJSON has been supported in the geo_shape field type all along, but recently we added GeoJSON support for geo_point and point (geographic and cartesian respectively):
This means that all three field types now consistently support both GeoJSON and WKT for points. However, it turns out that this support does not extend to the
geo_distance
query, which supports all the same point formats asgeo_point
except for GeoJSON. Interestingly, thegeo_bounding_box
query does support GeoJSON for thetop_left
andbottom_right
points (as well as WKT and other point formats).Adding GeoJSON to
geo_distance
should close this consistency gap.The text was updated successfully, but these errors were encountered: