Tracking multiple (20+) locations with iOS geofencing

前端 未结 5 1749
遥遥无期
遥遥无期 2020-12-02 08:34

An iOS application uses the geofencing for notifying the user about predefined nearby locations. The application is allowed to miss some location (the user is not getting a

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-02 09:14

    If you are concerned about performing the proximity check on each significant location change, you could use a spatial indexing/search method like R-trees or R*-tree to reduce the number of comparisons needed for each location change, as those search algorithms will filter out (possibly large) spatially irrelevant regions. That should reduce the time/battery power needed to perform the proximity checks.

提交回复
热议问题