The MKDirectionsResponse class provides a container for route information returned by the Apple servers. You do not create instances of this class directly. Instead, you initiate a request for directions between two points by calling the calculate(completionHandler:) method of an MKDirections object. You receive an instance of this class as the result.


Getting the End Points

var source: MKMapItem

The start point of the route.

var destination: MKMapItem

The end point of the route.

Getting the Route Information

var routes: [MKRoute]

An array of route objects representing the directions between the start and end points.


Inherits From

Conforms To