Sid
Sid

Reputation: 17

CLLocationManager class

can CLLocationManager class be used to compute the distsnce travelled by the person?

Upvotes: 0

Views: 352

Answers (1)

Dave DeLong
Dave DeLong

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

Related Questions