Class

MKETAResponse

The travel-time information returned by Apple servers.

Declaration

@interface MKETAResponse : NSObject

Overview

You do not create instances of this class directly. Instead, you initiate a request for the travel time by calling the calculateETAWithCompletionHandler: method of an MKDirections object. The completion handler you pass to that method receives an MKETAResponse object with the results.

Topics

Getting the End Points

source

The start point of the route.

destination

The end point of the route.

Getting the Travel Information

expectedTravelTime

The expected travel time in seconds.

expectedDepartureDate

The expected departure time.

expectedArrivalDate

The expected arrival time.

distance

The expected travel distance, in meters.

transportType

The type of conveyance used to determine the travel time.

Relationships

Inherits From

See Also

Directions

MKDirections

A utility object that computes directions and travel-time information based on the route information you provide.

MKDirectionsRequest

The start and end points of a route, along with the planned mode of transportation.

MKDirectionsResponse

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

MKRoute

A single route between a requested start and end point.

MKRouteStep

One portion of an overall route.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software