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);
时间: 2024-11-18 08:38:01