iOS Developer Library

Developer

MapKit Framework Reference MKETAResponse Class Reference

Options
Deployment Target:

On This Page
Language:

MKETAResponse

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.

Inheritance


Conforms To


Import Statement


import MapKit @import MapKit;

Availability


Available in iOS 7.0 and later.
  • source source Property

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

    Declaration

    Swift

    var source: MKMapItem! { get }

    Objective-C

    @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.

    Import Statement

    import MapKit

    Availability

    Available in iOS 7.0 and later.

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

    Declaration

    Swift

    var destination: MKMapItem! { get }

    Objective-C

    @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.

    Import Statement

    import MapKit

    Availability

    Available in iOS 7.0 and later.

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

    Declaration

    Swift

    var expectedTravelTime: NSTimeInterval { get }

    Objective-C

    @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.

    Import Statement

    import MapKit

    Availability

    Available in iOS 7.0 and later.