@@ 466-473 (lines=8) @@ | ||
463 | * @param array|Geometry $geometry |
|
464 | * @return $this |
|
465 | */ |
|
466 | public function geoIntersects($geometry) |
|
467 | { |
|
468 | if ($geometry instanceof Geometry) { |
|
469 | $geometry = $geometry->jsonSerialize(); |
|
470 | } |
|
471 | ||
472 | return $this->operator('$geoIntersects', ['$geometry' => $geometry]); |
|
473 | } |
|
474 | ||
475 | /** |
|
476 | * Add $geoWithin criteria with a GeoJSON geometry to the expression. |
|
@@ 486-493 (lines=8) @@ | ||
483 | * @param array|Geometry $geometry |
|
484 | * @return $this |
|
485 | */ |
|
486 | public function geoWithin($geometry) |
|
487 | { |
|
488 | if ($geometry instanceof Geometry) { |
|
489 | $geometry = $geometry->jsonSerialize(); |
|
490 | } |
|
491 | ||
492 | return $this->operator('$geoWithin', ['$geometry' => $geometry]); |
|
493 | } |
|
494 | ||
495 | /** |
|
496 | * Add $geoWithin criteria with a $box shape to the expression. |