Class

MKDirections.Response

The route information returned by Apple servers in response to one of your requests for directions.

Declaration

class Response : NSObject

Overview

You do not create instances of this class directly. Instead, you initiate a request for directions by calling the calculate(completionHandler:) method of an MKDirections object. The completion handler you pass to that method receives an MKDirections.Response object with the results.

Topics

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.

Relationships

Inherits From

Conforms To

See Also

Getting the Directions

func calculate(completionHandler: MKDirections.DirectionsHandler)

Begins calculating the requested route information asynchronously.

typealias MKDirections.DirectionsHandler

The block to use for processing the requested route information.