采用系统自带的方法实现
//第一个坐标
CLLocation *current=[[CLLocation alloc] initWithLatitude:32.178722 longitude:119.508619];
//第二个坐标
CLLocation *before=[[CLLocation alloc] initWithLatitude:32.206340 longitude:119.425600];
// 计算距离
CLLocationDistance meters=[current distanceFromLocation:before];
网友评论