我想计算我的位置和一些注释之间的中心点。到目前为止,我已经这样做了:如何计算CLLocationDistance的中心坐标
CLLocation *myLoc = self.locMgr.location;
MKPointAnnotation *middleAnnotation = [locationV.annotations objectAtIndex:locationV.annotations.count/2];
CLLocation *someStuiodLoc = [[CLLocation alloc] initWithLatitude:middleAnnotation.coordinate.latitude longitude:middleAnnotation.coordinate.longitude];
CLLocationDistance dist = [myLoc distanceFromLocation:someStuiodLoc];
如何计算“dist”的中心点/坐标?
-1只是代码没有答案。请参阅naini关于地球是一个球体的暗示 –
@ Daij-Djan哦,真的很抱歉只是代码,没有答案..其实我只是从这里http://stackoverflow.com/a/4167772/1059705实现这个代码,并认为它可能会帮助。 – Bala
http://stackoverflow.com/a/4656937/1059705即使在这里,他们也做了同样的事情。@ Daij-Djan – Bala