Reputation: 17
can CLLocationManager class be used to compute the distsnce travelled by the person?
Upvotes: 0
Views: 352
Reputation: 243156
No, but CLLocation
objects can. If you have two locations, then you can easily use the -[CLLocation distanceFromLocation:]
method to get the distance between them. Note, however, that this distance will be from along a great circle ("as the crow flies"), and not along any roads in the area.
Upvotes: 2