public function geoIntersects($geometry) { if ($geometry instanceof Geometry) { $geometry = $geometry->jsonSerialize(); } return $this->operator('$geoIntersects', ['$geometry' => $geometry]); }
/** * Add $geoIntersects criteria with a GeoJSON geometry to the query. * * The geometry parameter GeoJSON object or an array corresponding to the * geometry's JSON representation. * * @see Expr::geoIntersects() * @see http://docs.mongodb.org/manual/reference/operator/geoIntersects/ * @param array|Geometry $geometry * @return self */ public function geoIntersects($geometry) { $this->expr->geoIntersects($geometry); return $this; }