InstructionPoint

public struct InstructionPoint

Represents a instruction point together with its coordinate and distance offset along the route.

Important

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

Lifecycle

  • Initializer

    Declaration

    Swift

    public init(coordinate: CLLocationCoordinate2D, routeOffset: Measurement<UnitLength>)

    Parameters

    coordinate

    CLLocationCoordinate2D from the Route polyline.

    routeOffset

    The distance offset along the route.

Public

  • CLLocationCoordinate2D from the Route polyline.

    Declaration

    Swift

    public let coordinate: CLLocationCoordinate2D
  • The distance offset along the route.

    Declaration

    Swift

    public let routeOffset: Measurement<UnitLength>