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

Querying along a polyline

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Query Execution

      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 }

      })

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            enepper Esben Nepper
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: