We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f94e7 commit 74d8525Copy full SHA for 74d8525
source/core/geospatial-indexes.txt
@@ -276,8 +276,8 @@ with a radius of ``100`` miles:
276
277
.. code-block:: javascript
278
279
- db.places.find( { loc: { $centerSphere: [ [ -74, 40.74 ] ,
280
- 100 / 3963.192 ] } } )
+ db.places.find( { loc: { $within: { $centerSphere: [ [ -74, 40.74 ] ,
+ 100 / 3963.192 ] } } } )
281
282
You may also use the ``distanceMultiplier`` option to the
283
:dbcommand:`geoNear` to convert radians in the :program:`mongod`
0 commit comments