1
0
Fork 0

Update Geo.md

This commit is contained in:
Simon Grätzer 2017-05-23 12:01:29 +02:00 committed by GitHub
parent 8afdf85d0a
commit add535f1ed
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ A geo index is implicitly sparse, and there is no way to control its sparsity.
In case that the index was successfully created, an object with the index
details, including the index-identifier, is returned.
To create a geo on an array attribute that contains longitude first, set the
To create a geo index on an array attribute that contains longitude first, set the
*geoJson* attribute to `true`. This corresponds to the format described in
[positions](http://geojson.org/geojson-spec.html)
[RFC 7946 Position](https://tools.ietf.org/html/rfc7946#section-3.1.1)
`collection.ensureIndex({ type: "geo", fields: [ "location" ], geoJson: true })`