RouteStep

@objc(MBRouteStep) class RouteStep : NSObject, NSSecureCoding
  • Returns true if the route step is on a motorway.

    Declaration

    Swift

    open var isMotorway: Bool
  • Returns the last instruction for a given step.

    Declaration

    Swift

    open var lastInstruction: SpokenInstruction?
  • Returns a string describing the step’s road by its name, route number, or both, depending on the kind of road.

    Declaration

    Swift

    public func roadDescription(markedUpWithSSML: Bool) -> String?

    Parameters

    markedUpWithSSML

    True to wrap the name and route number in SSML tags that cause them to be read as addresses.

    Return Value

    A string describing the step’s road, or nil if the step lacks the information needed to describe the step.