如何使用距离矩阵api获取两个地方之间的方向(swift)?

问题描述:

如何使用距离矩阵API两个地获得的方向,我查了很多的互联网,但我不能找到有效的教程和细节如何使用距离矩阵api获取两个地方之间的方向(swift)?

任何人可以帮助我找到一个很好的教程?

CLLocationDistance meters = [firstLocation distanceFromLocation:secondLocation];

使用corelocation framwork.the两个位置的类型cllocation协调​​

+0

我尝试“变种距离= firstLocation!.distanceFromLocation(secondLocation!)”在迅速,但它不到风度工作 – scbas1000

+0

显示完整的code.Print的首先定位或设置一个中断点以确保您获取位置。 –