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

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

posted @ 2015-07-30 18:32  蓝色的风1203  阅读(403)  评论(0编辑  收藏  举报