MKPolygon area calculation

The whole algorithm implemented in Swift 3.0 : import MapKit let kEarthRadius = 6378137.0 // CLLocationCoordinate2D uses degrees but we need radians func radians(degrees: Double) -> Double { return degrees * M_PI / 180; } func regionArea(locations: [CLLocationCoordinate2D]) -> Double { guard locations.count > 2 else { return 0 } var area = 0.0 for … Read more