我正在将某个位置的坐标与用户的当前坐标进行比较。距离输出如下:6056609.511004132946254686
我不确定这是什么测量值。我希望最终测量的距离以公里为单位。
// location of deal
CLLocation *locA = [[CLLocation alloc] initWithLatitude:latNum longitude:lngNum];
// user's current location
CLLocation *locB = [[CLLocation alloc] initWithLatitude:currentLatitude longitude:currentLongitude];
CLLocationDistance distanceToDeal = [locA distanceFromLocation:locB];