diff --git a/source/reference/operator/near.txt b/source/reference/operator/near.txt index 9c8a990d69a..b2d6596f9b9 100644 --- a/source/reference/operator/near.txt +++ b/source/reference/operator/near.txt @@ -33,9 +33,9 @@ $near { $near : { $geometry : { type : "Point" , - coordinates : [ , ] } , + coordinates : [ , ] } }, $maxDistance : - } } } ) + } } ) .. important:: Specify coordinates in this order: **"longitude, latitude."** @@ -48,9 +48,9 @@ $near db.places.find( { loc : { $near : { $geometry : { type : "Point" , - coordinates: [ 40 , 5 ] } , + coordinates: [ 40 , 5 ] } }, $maxDistance : 100 - } } } ) + } } ) For queries on legacy coordinate pairs, use the following syntax: