I can't seem to find any information on how Core Location handles overlapping geofences. In my particular case I was wondering if a smaller geofence would be registered over a bigger, overlapping region. Does someone know this?
Geofencing is a location-based service in which an app or other software uses GPS, RFID, Wi-Fi or cellular data to trigger a pre-programmed action when a mobile device or RFID tag enters or exits a virtual boundary set up around a geographical location, known as a geofence.
Geofencing notifies your app when its device enters or leaves geographical regions you set up. It lets you make cool apps that can trigger a notification whenever you leave home, or greet users with the latest and greatest deals whenever favorite shops are nearby.
For best results, the minimum radius of the geofence should be set between 100 - 150 meters.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With