使用 的 距离 强> CoreLocation Framework的功能,
var startLocation = CLLocation(latitude: startLatitude, longitude: startLongitude) var endLocation = CLLocation(latitude: endLatitude, longitude: endLongitude) var distance: CLLocationDistance = startLocation.distance(from: endLocation)