From 32051b317073a3b3d7b8c21e2aa209ab248be92c Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Thu, 25 Apr 2013 14:27:07 -0400 Subject: [PATCH] minor: edits to nearSphere --- source/reference/operator/nearSphere.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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