How to get distances from gps points from Core Location?
I'm developing 开发者_如何学JAVAan iPhone iOS4 application and one of the things that it have to do is to calculate the distance from 2 gps coordinate points.
I already know that Core Location Framework can return points from iPhones gps.
Ok, but I was wondering if there already is a method or a function to calculate the distance between these points obtained from Core Location.
So the question is: Is there a function/method in any of IO4 SDK framework (Core Location?) that would do the job (compute the distance between 2 gps coordinate points)? Or should I actually implement it by myself?
See the CLLocation documentation and in particular;
- (CLLocationDistance)distanceFromLocation:(const CLLocation *)location
精彩评论