Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1414

GeoWithin $centerSphere shouldn't have $maxDistance

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • mongodb-2.4
    • manual
    • None

    Description

      Page: http://docs.mongodb.org/manual/reference/geospatial-queries/

      Table section:

      { $geoWithin : {
        $centerSphere :
          [[x, y], radius]
        $maxDistance : d
      } }

      $maxDistance doesn't make sense (it'd be redundant of radius). It also has no effect no matter what its value is (though to test it you have to add a comma after "radius]"

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 42 weeks, 5 days ago