@@ 481-488 (lines=8) @@ | ||
478 | * @param array|Geometry $geometry |
|
479 | * @return $this |
|
480 | */ |
|
481 | public function geoIntersects($geometry) |
|
482 | { |
|
483 | if ($geometry instanceof Geometry) { |
|
484 | $geometry = $geometry->jsonSerialize(); |
|
485 | } |
|
486 | ||
487 | return $this->operator('$geoIntersects', ['$geometry' => $geometry]); |
|
488 | } |
|
489 | ||
490 | /** |
|
491 | * Add $geoWithin criteria with a GeoJSON geometry to the expression. |
|
@@ 501-508 (lines=8) @@ | ||
498 | * @param array|Geometry $geometry |
|
499 | * @return $this |
|
500 | */ |
|
501 | public function geoWithin($geometry) |
|
502 | { |
|
503 | if ($geometry instanceof Geometry) { |
|
504 | $geometry = $geometry->jsonSerialize(); |
|
505 | } |
|
506 | ||
507 | return $this->operator('$geoWithin', ['$geometry' => $geometry]); |
|
508 | } |
|
509 | ||
510 | /** |
|
511 | * Add $geoWithin criteria with a $box shape to the expression. |