Retrieving Location Data with Radius using Firebase & GeoFire

前端 未结 1 1548
逝去的感伤
逝去的感伤 2021-02-01 11:16

I am trying to use GeoFire to retrieve and according to radius (for example, everything in 10km distance).

To remain clear, I am saving the details and location separat

相关标签:
1条回答
  • 2021-02-01 12:12

    Dont have enough points for commenting but move the ".indexOn" up to the checkpointLocations node. Currently you have it on checkpointLocations/geofire. For example:

    "rules": {
        "checkpointLocations": {
          ".read": true,
          ".write": true,
          ".indexOn": "g"
          "geofire": {
    
          }
        }
      }
    
    0 讨论(0)
提交回复
热议问题