I\'m developing an application where user can set multiple locations. I get succeed to show notifications when user get Enter or Leave specific location boundary.
N
Harvesine - Objective C
Harvensine - Swift
That will give you the distance between the two locations. After that you could compare that distance with the region radius to know if is inside the region.
Note: This distance will be in kilometers if your radius is on meters then just multiply the haversine method result with 1000 so that it's converted to meters.
This will allow you to always monitor the 20 nearest regions based on your location. Been able to monitor more than 20 since it will change the monitoring regions always to the 20 nearest regions.