I am using Geofencing. I want a method that checks whether or not a user is within certain boundaries.
I have the location as a CLLocationCoordinate2D
which I've named location
, and I have an array of 8 doubles, making up 4 coordinates (NW, NE, SW, SE). I can convert them to CLLocationCoordinate2D
's. My question is, how can I check whether the location
is within the boundaries? in iOS...