最佳答案
试试这个...
让 coordinateA = CLLocation(latitude: 55.0, longitude: 35.0)
设坐标B = CLLocation(纬度: 65.0, 经度: 73.0)
让 distanceInMeters = coordinateA.distance(from: coordinateB)
计算距离后,使用此公式计算速度。
即速度=距离/时间
试试这个委托(delegate)来获得速度或时间
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
关于ios - 在 iOS 中获取谷歌地图的中心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44899665/