【发布时间】:2019-07-05 07:16:57
【问题描述】:
我正在尝试找出如何在给定两点坐标(经纬度)的情况下分别计算两点之间的“东西向”距离和“南北向”距离,为了找出该线与北方方向不同的程度。 In short I need to calculate x and y in meters in order to get the degree of alpha, when x and y are given by longitude and latitude.
我知道CLLocation有一个计算两点距离的函数:
距离(从位置:CLLocation)-> CLLocationDistance
我试图打开该函数的源代码以了解如何分离这两个组件,但我没有找到如何打开该代码。
【问题讨论】:
标签: ios core-location cllocationmanager cllocation