| @@ 486-493 (lines=8) @@ | ||
| 483 | * @param array|Geometry $geometry |
|
| 484 | * @return $this |
|
| 485 | */ |
|
| 486 | public function geoIntersects($geometry) |
|
| 487 | { |
|
| 488 | if ($geometry instanceof Geometry) { |
|
| 489 | $geometry = $geometry->jsonSerialize(); |
|
| 490 | } |
|
| 491 | ||
| 492 | return $this->operator('$geoIntersects', ['$geometry' => $geometry]); |
|
| 493 | } |
|
| 494 | ||
| 495 | /** |
|
| 496 | * Add $geoWithin criteria with a GeoJSON geometry to the expression. |
|
| @@ 506-513 (lines=8) @@ | ||
| 503 | * @param array|Geometry $geometry |
|
| 504 | * @return $this |
|
| 505 | */ |
|
| 506 | public function geoWithin($geometry) |
|
| 507 | { |
|
| 508 | if ($geometry instanceof Geometry) { |
|
| 509 | $geometry = $geometry->jsonSerialize(); |
|
| 510 | } |
|
| 511 | ||
| 512 | return $this->operator('$geoWithin', ['$geometry' => $geometry]); |
|
| 513 | } |
|
| 514 | ||
| 515 | /** |
|
| 516 | * Add $geoWithin criteria with a $box shape to the expression. |
|