VisualInstruction

open class VisualInstruction : Codable
extension VisualInstruction: Equatable

The contents of a banner that should be displayed as added visual guidance for a route. The banner instructions are children of the steps during which they should be displayed, but they refer to the maneuver in the following step.

  • A plain text representation of the instruction.

    This property is set to nil when the text property in the Mapbox Directions API response is an empty string.

    Declaration

    Swift

    public let text: String?
  • A structured representation of the instruction.

    Declaration

    Swift

    public let components: [Component]