百度地图计算两个点之间的距离

BMKMapPoint point1 = BMKMapPointForCoordinate(CLLocationCoordinate2DMake(38.085178, 114.502358));

BMKMapPoint point2 = BMKMapPointForCoordinate(CLLocationCoordinate2DMake(38.085171, 114.502312));

CLLocationDistance distance = BMKMetersBetweenMapPoints(point1,point2);

    

NSLog(@"距离: %0.2f米", distance);

握不住的沙,干脆扬了它。
原文地址:https://www.cnblogs.com/zj901203/p/4690255.html