Protocols

The following protocols are available globally.

Instruction

  • Protocol for basic Instruction. Contains a set of attributes common to all instructions.

    Different types of Instruction will implement this. They may also add extra attributes specific to their Instruction type. e.g., TurnInstruction will contain turnAngleInDegrees and turnDirection.

    See more

    Declaration

    Swift

    public protocol Instruction

InstructionBuilder

RouteStop

  • Represents point of the route received in response from route planning API

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol RouteStop

Section

  • The Section protocol contains information about a part of the route.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol Section
  • The SectionInitiable protocol contains init to create simple section.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol SectionInitiable
  • Protocol that describes how translations are fetched.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol TranslationsProvider