Since the release of the iOS 7 SDK, the
MapKit framework includes the
MKDirections API which allows iOS developers to access the route-based directions data from Apple's server. Typically you create an
MKDirections instance with the start and end points of a route. The instance then automatically contacts Apple's server and retrieves the route-based data.
You can use the
MKDirections API to get both driving and walking directions depending on your preset transport type. If you like,
MKDirections can also provide you alternate routes. On top of all that, the API lets you calculate the travel time of a route.
Again we'll build a demo app to see how to utilize the
To continue reading, please get the book here.