Distance for GeoPolygon

I'm trying to get the distance between a geopoint (my coordinate) and GeoPolygon indexed property (serviceAreas). Are there any scripting method that does this? In the instance of GeoPoint, I'm aware I can use a Scripted Field by doing GeoPoint.arcDistance(lat, lon) however, I'm not sure if this is possible for GeoPolygon. I"m using ElasticSearch 6.3.

Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.