Doctrine\MongoDB\Query\Builder::near PHP Method

near() public method

A GeoJSON point may be provided as the first and only argument for 2dsphere queries. This single parameter may be a GeoJSON point object or an array corresponding to the point's JSON representation.
See also: Expr::near()
See also: http://docs.mongodb.org/manual/reference/operator/near/
public near ( float | array | GeoJson\Geometry\Point $x, float $y = null )
$x float | array | GeoJson\Geometry\Point
$y float
    public function near($x, $y = null)
    {
        $this->expr->near($x, $y);
        return $this;
    }