Skip to content

Commit 8aac21d

Browse files
author
henriquetroiano
committed
create aggregate geonear instructions
1 parent 21c4880 commit 8aac21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ $bars = Bar::where('location', 'geoIntersects', [
588588
You are able to make a `geoNear` query on mongoDB.
589589
You don't need to specify the automatic fields on the model.
590590
The returned instance is a collection. So you're able to make the [Collection](https://laravel.com/docs/9.x/collections) operations.
591-
Just make sure that your model has a `location` field, and a [2ndSphereIndex](https://www.mongodb.com/docs/manual/core/2dsphere)
592-
The data in the `location` field must be saved as [GeoJSON](https://www.mongodb.com/docs/manual/reference/geojson/)
591+
Just make sure that your model has a `location` field, and a [2ndSphereIndex](https://www.mongodb.com/docs/manual/core/2dsphere).
592+
The data in the `location` field must be saved as [GeoJSON](https://www.mongodb.com/docs/manual/reference/geojson/).
593593
The `location` points must be saved as [WGS84](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-WGS84) reference system for geometry calculation. That means, basically, you need to save longitude and latitude, in that order specifically.
594594

595595
```

0 commit comments

Comments
 (0)