cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
265 stars 318 forks source link

(architectural) ERROR: Overlapping Geofences resulting in complete nonsense #149

Open ThaBrad opened 8 years ago

ThaBrad commented 8 years ago

Although it was my stupid failure, this just shouldn't result in "nothing working at all":

So the case is, if you just happen to have 2 overlapping fences (for whatever, sometimes explainable reasons), there is no whatsoever possibility to detect one of those (overlapping) fence at all !!

Although I'm hesitating to say what is the best solution to treat this use-case, just firing up at least any event is a MUST in my opinion, maybe even fire them consecutively.

Now, we have to implement an algorithm that polls through the fences and checks if the radiuses and locations don't ever overlap, which when having a lot of coordinates will result in an O^n Problem 👎 .

Thank you.