Calculate Total Traveled Distance iOS Swift
How can I calculate the total distance traveled use CoreLocation in Swift I haven't been able to so far find any resources for how to do this in Swift for iOS 8, How would you calculate the total distance moved since you began tracking your location? From what I've read so far, I need to save location of a points, then calculate the distance between current point, and last point, then add that distance to a totalDistance variable Objective-C is extremely unfamiliar to me, so I haven't been able to work out the swift syntax Here is what I've worked out so far, not sure if I'm doing it right.