iOS 计算两个坐标之间的距离

   //第一个坐标

        CLLocation *before=[[CLLocation alloc] initWithLatitude:29.553968 longitude:106.538872];

        //第二个坐标

        CLLocation *current=[[CLLocation alloc] initWithLatitude:29.552959 longitude:106.537199];

        // 计算距离

        CLLocationDistance meters=[current distanceFromLocation:before];

    

        NSLog(@"-------%lf",meters);

原文地址:https://www.cnblogs.com/hualuoshuijia/p/5709955.html