/** * Add $near criteria to the query. * * 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 Expr::near() * @see http://docs.mongodb.org/manual/reference/operator/near/ * @param float|array|Point $x * @param float $y * @return self */ public function near($x, $y = null) { $this->expr->near($x, $y); return $this; }