public geo_distance ( string $name, string $field, string | array $origin ) : Elastica\Aggregation\GeoDistance | ||
$name | string | the name if this aggregation |
$field | string | the field on which to perform this aggregation |
$origin | string | array | the point from which distances will be calculated |
return | Elastica\Aggregation\GeoDistance |