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

Multiple near opration

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    Description

      A user has two addresses (one "pickup address" and one "delivery address").
      The user wants to find other users which have similar pickup AND delivery addresses (this is why I need two $geoNear).

      Example data (simplified):

      User, pickup address, delivery address:
      User 1, Germany, USA
      User 2, France, Spain
      User 3, Germany, USA
      User 4, Germany, France
      User 5, Canada, USA
      User 6, Germany, USA

      If user 1 wants to find other users, user 3 and user 6 have to be shown (because only there both addresses are "near").

      In my real project the data is a bit more complex and of course I have real addresses (with latitude and longitude).

      If two $geoNear are not possible, I could go first for the pickup address, then for the delivery address. However I fear a bad performance here because I have millions of addresses.

      Need more details? Please let me know.

      Attachments

        Activity

          People

            sev.kozak Sev Kozak
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 28 weeks, 1 day ago