Tracking more than 100 simultaneous geofences with the new Android API

倾然丶 夕夏残阳落幕 提交于 2019-11-30 05:57:10
b-ryce

I'd recommend downloading all points to a sqlite db on the device. Then find the closest 99 points with something like this: SQlite Getting nearest locations (with latitude and longitude) and register those points with Android to monitor.

Then set a "significant change" geofence that you can use to monitor if the user's location has changed enough that when they exit this geofence, you should reload the closest points of interest.

I think there is a limit of 100 geofences. I am not sure if this is per application or per application per user. I have not test this idea, but can you register the first 100 locations closest to your location?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!