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