Protocols

The following protocols are available globally.

Instruction

  • Represents an instruction for a maneuver along the Route. In order to guide a driver along the route, the navigation system invokes guiding Instructions for every maneuver.

    Contains a set of attributes common to all instructions. Is a part of the RouteLeg which itself is a part of the Route.

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

    See more

    Declaration

    Swift

    public protocol Instruction

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.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public protocol SectionInitiable