Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4339

Querying along a polyline

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Geo
    • None
    • Query Execution

    Description

      I'll like to be able to query along a polyline. The idea is to give
      mongo an array of points and a max distance. Mongo should return every
      document within the max distance from the polyline. There should also
      be an option to tell if it should only be distinct document or not.
      polyline = [[10, 20], [10, 40], [30, 40], [30, 20]]
      db.places.find({ "loc":

      { $along: polygonA, $maxDistance: 5, $uniqueDocs: true }

      })

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            enepper Esben Nepper
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: