Use mapkit to calculate driving distance between two addresses?

ios, iphone, mapkit, objective-c

Solution

How about using the Core Location framework:

`- (CLLocationDistance)getDistanceFrom:(const CLLocation *)location`

You'll need the latitude/longitudes for both addresses.

Edit: Deprecated in iOS 3.2. Use the `distanceFromLocation:` method instead.

Problem

Is it possible to use the mapkit in the iphone sdk to calculate driving distance between two addresses ?

Original source