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

geoNear command docs do not discuss result format

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • None
    • manual
    • None

    Description

      I believe the documentation for the geoNear used to have an example of the returned result format. I was only able to find an example on this page.

      The important thing to note is that in the results array of the command result document, each element is an object with the dis (computed distance) and obj (document) fields.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 26 weeks, 1 day ago