Doctrine\MongoDB\Aggregation\Stage\Match::maxDistance PHP Method

maxDistance() public method

If the query uses GeoJSON points, $maxDistance will be interpreted in meters. If legacy point coordinates are used, $maxDistance will be interpreted in radians.
See also: Expr::maxDistance()
See also: http://docs.mongodb.org/manual/reference/command/geoNear/
See also: http://docs.mongodb.org/manual/reference/operator/maxDistance/
See also: http://docs.mongodb.org/manual/reference/operator/near/
See also: http://docs.mongodb.org/manual/reference/operator/nearSphere/
public maxDistance ( float $maxDistance )
$maxDistance float
    public function maxDistance($maxDistance)
    {
        $this->query->maxDistance($maxDistance);
        return $this;
    }