MKETAResponse Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 7.0 and later.
Companion guide
Declared in
MKDirectionsResponse.h

Overview

The MKETAResponse class provides a container for travel-time information returned by the Apple servers. You do not create instances of this class directly. Instead, you initiate a request for the travel time between two points by calling the calculateETAWithCompletionHandler: method of an MKDirections object. You receive an instance of this class as the result.

Tasks

Getting the End Points

Getting the Travel Time

Properties

destination

The end point of the route. (read-only)

@property (nonatomic, readonly) MKMapItem *destination
Discussion

The item in this property may contain additional details that were not included in the original item used to create the MKDirectionsRequest object.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKDirectionsResponse.h

expectedTravelTime

The expected travel time in seconds. (read-only)

@property (nonatomic, readonly) NSTimeInterval expectedTravelTime
Discussion

This expected travel time reflects the time it takes to traverse the route under ideal conditions. The actual amount of time may vary based on traffic, weather, and other travel conditions.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKDirectionsResponse.h

source

The start point of the route. (read-only)

@property (nonatomic, readonly) MKMapItem *source
Discussion

This item in this property may contain additional details that were not included in the original item used to create the MKDirectionsRequest object.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKDirectionsResponse.h