Skip to content

Commit 2009ca3

Browse files
asya999kay-kim
authored andcommitted
Changed example points
Changed example coordinates to avoid confusion with 100 default limit. Signed-off-by: kay <[email protected]>
1 parent 9409c36 commit 2009ca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/reference/operator/query/maxDistance.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Example
3232
-------
3333

3434
The following example query returns documents with location values that
35-
are ``10`` or fewer units from the point ``[ 100 , 100 ]``.
35+
are ``10`` or fewer units from the point ``[ -74 , 40 ]``.
3636

3737
.. code-block:: javascript
3838

3939
db.places.find( {
40-
loc: { $near: [ 100 , 100 ], $maxDistance: 10 }
40+
loc: { $near: [ -74 , 40 ], $maxDistance: 10 }
4141
} )
4242

43-
MongoDB orders the results by their distance from ``[ 100 , 100 ]``.
43+
MongoDB orders the results by their distance from ``[ -74 , 40 ]``.
4444
The operation returns the first 100 results, unless you modify the
4545
query with the :method:`cursor.limit()` method.

0 commit comments

Comments
 (0)