ioscore-locationregion-monitoring

IOS 7 Region monitoring - choosing your regions


My app wants to monitor more than the max 20 regions. Is there some way to use current location to determine proximity to any of n defined and non-monitored regions and then populate your monitored regions based on the current location?

Putting it another way, if device is at location X, then load region 1 through 20. But if the app starts at location y, then you may want to load regions 4 through 23...

Thanks in advance for any input.


Solution

  • If you have a list of regions in your app then you can use distanceFromLocation: to determine which ones are the closest and register those. You can also implement signification location change notification to review your region distances and select different regions to monitor when the device moves.