Description
http://docs.mongodb.org/manual/reference/operator/query/near/#op._S_near
Looks like our docs show maxDistance in the wrong spot.
The maxDistance should be in $geometry:
http://docs.mongodb.org/master/release-notes/2.6-compatibility/#maxdistance-changes
Here's an example from our page with the maxDistance in the $near doc:
db.places.find( { loc : { $near :
|
{ $geometry :
|
{ type : "Point" ,
|
coordinates: [ 40 , 5 ] } },
|
$maxDistance : 500
|
} } )
|