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 9409c36 commit 2009ca3Copy full SHA for 2009ca3
source/reference/operator/query/maxDistance.txt
@@ -32,14 +32,14 @@ Example
32
-------
33
34
The following example query returns documents with location values that
35
-are ``10`` or fewer units from the point ``[ 100 , 100 ]``.
+are ``10`` or fewer units from the point ``[ -74 , 40 ]``.
36
37
.. code-block:: javascript
38
39
db.places.find( {
40
- loc: { $near: [ 100 , 100 ], $maxDistance: 10 }
+ loc: { $near: [ -74 , 40 ], $maxDistance: 10 }
41
} )
42
43
-MongoDB orders the results by their distance from ``[ 100 , 100 ]``.
+MongoDB orders the results by their distance from ``[ -74 , 40 ]``.
44
The operation returns the first 100 results, unless you modify the
45
query with the :method:`cursor.limit()` method.
0 commit comments