我似乎无法找到有关Core Location如何处理重叠地理围栏的任何信息。在我的特殊情况下,我想知道是否会在较大的重叠区域注册较小的地理围栏。有人知道吗?
答案 0 :(得分:7)
Core Location will register when you enter a geofenced area whether you are currently in another area or not. Consider this example for a clear understanding.
If I set a geofence around the entire United States and a smaller geofence around the state of Florida.
When I Enter the United States it will register that I entered the United States geofence. When I enter Florida, it will register that I entered the Florida geofence, but I don't leave the United States geofence; I am now in both geofences. If I go to Georgia, it will register that I exited the Florida geofence, but I am still in the United States Geofence. If I exit Florida through the ocean and leave Florida and the United States, it will register that I have exited both the United States and Florida geofences.
So, no. Smaller geofences are not registered over a bigger overlapping region. They are both registered as if they know nothing about the other geofences that are being monitored.