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.