import MapKit
let location1 = CLLocation(latitude: 24.953232, longitude: 121.225353)
let location2 = CLLocation(latitude: 24.9511, longitude: 121.2358)
let distance : CLLocationDistance = location1.distanceFromLocation(location2)
print("distance = \(distance) m")
No comments:
Post a Comment