Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does geofences behave when there are overlapping CLRegions

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?

like image 828
Oscar Apeland Avatar asked Feb 12 '16 19:02

Oscar Apeland


People also ask

How do Geofences work?

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.

How does geofencing work on iOS?

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.

What is the recommended radius for a geofence?

For best results, the minimum radius of the geofence should be set between 100 - 150 meters.


1 Answers

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.

like image 138
MSU_Bulldog Avatar answered Nov 15 '22 11:11

MSU_Bulldog