I have the swift code below that draws a polygon and drops an annotation on MKMapView. I am trying to figure out how i could identify if the annotation\'s coordinate is with
How about using MkPolygon.intersect()? This requires converting the point to a tiny MKMapRect, but it is simpler and may get some acceleration from the underlying API:
func pointIsInside(point: MKMapPoint, polygon: MKPolygon) -> Bool {
let mapRect = MKMapRectMake(point.x, point.y, 0.0001, 0.0001)
return polygon.intersects(mapRect)
}