diff --git a/source/reference/operator/nearSphere.txt b/source/reference/operator/nearSphere.txt index e01cd244346..8aff63d1b5d 100644 --- a/source/reference/operator/nearSphere.txt +++ b/source/reference/operator/nearSphere.txt @@ -28,6 +28,8 @@ $nearSphere In a ``2dsphere`` index, a grid coordinate is interpreted as a GeoJSON point. + .. important:: If you use longitude and latitude, specify **longitude first**. + For queries on GeoJSON data, use the following syntax: .. code-block:: javascript @@ -40,8 +42,6 @@ $nearSphere $maxDistance : } } } ) - .. important:: If you use longitude and latitude, specify **longitude first**. - For queries on legacy coordinate pairs, use the following syntax: .. code-block:: javascript @@ -51,8 +51,6 @@ $nearSphere $maxDistance: } } ) - .. important:: If you use longitude and latitude, specify **longitude first**. - The following example selects the 100 documents with legacy coordinates pairs nearest to ``[ 40 , 5 ]``, as calculated by spherical geometry: @@ -63,5 +61,3 @@ $nearSphere { $nearSphere : [ 40 , 5 ] $maxDistance : 10 } } ) - - .. include:: /includes/note-geospatial-index-must-exist.rst