Array
extension Array where Element == CLLocationCoordinate2D
Important
This is a Public Preview API. It may be changed or removed at any time.-
Calculates distance in meters between points in the array of CLLocationCoordinate2D.
Declaration
Swift
public func distanceOffsetInMeters(fromIndex: Int, toIndex: Int) -> Double
-
Calculates total distance in meters between all points of the array
Declaration
Swift
public func totalDistance() -> Double