标签:
+(double)getDistanceWithOtherLatitde:(double)olat otherLongitude:(double)olon myLatitde:(double)mlat myLongitude:(double)mlon //计算出相聚多少米 { CLLocation*otherLocation=[[CLLocation alloc]initWithLatitude:olat longitude:olon]; CLLocation*myLocation=[[CLLocation alloc]initWithLatitude:mlat longitude:mlon]; CLLocationDistance meters=[otherLocation distanceFromLocation:myLocation]; return meters; }
标签:
原文地址:http://www.cnblogs.com/liaods/p/4837741.html