如何使用距离矩阵api获取两个地方之间的方向(swift)?
答
CLLocationDistance meters = [firstLocation distanceFromLocation:secondLocation];
使用corelocation framwork.the两个位置的类型cllocation协调
我尝试“变种距离= firstLocation!.distanceFromLocation(secondLocation!)”在迅速,但它不到风度工作 – scbas1000
显示完整的code.Print的首先定位或设置一个中断点以确保您获取位置。 –