//第一个坐标

        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);

 

相关文章: