开发者

How to get distances from gps points from Core Location?

开发者 https://www.devze.com 2023-03-10 12:06 出处:网络
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'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
0

精彩评论

暂无评论...
验证码 换一张
取 消