Class

MKRoute.Step

One portion of an overall route.

Declaration

class Step : NSObject

Overview

Each MKRoute.Step object corresponds to a single instruction that would need to be followed by the user when navigating between two points. For example, a step might involve following a single road until a turn is required.

You do not create instances of this class directly. An MKRoute object contains the MKRoute.Step objects associated with a route. For more information about requesting directions, see MKDirections.

Topics

Getting the Step Geometry

var polyline: MKPolyline

The detailed step geometry.

Getting Additional Step Details

var instructions: String

The written instructions for following the path represented by this step.

var notice: String?

Additional notices that apply to the step.

var distance: CLLocationDistance

The step distance in meters.

var transportType: MKDirectionsTransportType

The transport type of the step.

Relationships

Inherits From

Conforms To

See Also

Getting the Route Geometry

var polyline: MKPolyline

The detailed route geometry.

var steps: [MKRoute.Step]

The array of steps that comprise the 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