InstructionPoint

public struct InstructionPoint

Represents route instruction coordinate and its distance offset along the route.

Lifecycle

  • Creates an instance with the specified coordinate and route offset.

    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>