Instance Property


The name assigned to the route.


var name: String { get }


The string in this property is localized according to the user’s language preferences. You can display this string to the user from your app’s user interface so that the user can distinguish one route from another.

The string itself describes the route using one of the route’s significant features. For example, a route that uses a major highway for a significant portion of the route might use that highway for its name.

See Also

Getting Additional Route Details

var advisoryNotices: [String]

An array of advisory notice strings for the route.

var distance: CLLocationDistance

The route distance in meters.

var expectedTravelTime: TimeInterval

The expected travel time in seconds.

var transportType: MKDirectionsTransportType

The overall route transport type.