src/Builders/FilterBuilder.php
public function whereGeoDistance($field, $value, $distance)
    {
        $this->wheres['must'][] = [
            'geo_distance' => [
                'distance' => $distance,
                $field => $value,
            ],
        ];

        return $this;
    }
public function whereGeoDistance($field, $value, $distance)
    {
        $this->wheres['must'][] = [
            'geo_distance' => [
                'distance' => $distance,
                $field => $value,
            ],
        ];

        return $this;
    }
public function whereGeoDistance ( $ field , $ value , $ distance ) { $ this -> wheres [ 'must' ] [ ] = [ 'geo_distance' => [ 'distance' => $ distance , $ field => $ value , ] , ] ; return $ this ; }
Add a whereGeoDistance condition.

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html Geo distance query

@param string $field
@param string|array $value
@param int|string $distance
@return $this
Add a whereGeoDistance condition .