RouteLeg

public struct RouteLeg

Represents information about a part of a Route

Contains a list of Instructions for all the maneuvers along the route leg.

Important

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

Lifecycle

  • Initializer

    Declaration

    Swift

    public init(
        geometry: [CLLocationCoordinate2D],
        instructions: [Instruction],
        summary: Summary,
        mapReferences: MapReferences? = nil
    )

    Parameters

    geometry

    List of all coordinates of the route leg.

    instructions

    List of instructions associated with a particular guidance step.

    summary

    Summary of the route.

    mapReferences

    The map references.

Public

  • List of all coordinates of the route leg.

    Declaration

    Swift

    public var geometry: [CLLocationCoordinate2D]
  • List of instructions associated with a particular guidance step.

    Declaration

    Swift

    public var instructions: [Instruction]
  • Summary of the route.

    Declaration

    Swift

    public var summary: Summary
  • The map references.

    Declaration

    Swift

    public var mapReferences: MapReferences?