开发者

How to obtain, save and calculate distance between coordinates with CoreLocation [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

GPS coordinates in degrees to calculate distances

Hi friends I am new iPhone developer.

I am working with the iOS GPS to find the distance between my current location and a previous location.

开发者_开发问答

First of all I don't know how to find my current location. Please tell me.

I have a method that is called to find my current location and previous location. I can only get the current location from CoreLocation - how can I get hold of my previous location.

I am fully confused please help me.


Check out this basic tutorial on using CoreLocation iOS Core Location GPS Tutorial . It explains in simple terms how to obtain a location, save it and do simple calculations with other locations.

To calculate the distance between to coordinates use the distanceFromLocation: method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜