码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-07-30 20:54:48      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:

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

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

标签:

原文地址:http://www.cnblogs.com/zj901203/p/4690255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!