MKMapKit true distance between two annotations

817 Views Asked by At

I want to make a application that calculates the distance between the user's current location and the nearest something (store, whatnot). Is there any way to obtain the real distance (following public roads ) instead of a direct distance (line from point A to B) ??

Thank you

1

There are 1 best solutions below

0
On BEST ANSWER

Use google API to get the route and distance: http://code.google.com/apis/maps/documentation/directions/

I don't think you can get the route (following roads) from MKMapKit.

The google maps API will return the route (following roads) as a set of latitude and longitude coordinates. It will also return the calculated distance.