RouteProjectionOptions

public struct RouteProjectionOptions

Options used by OfflineRouteProjectionEngine to configure projection parameters.

Important

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

Lifecycle

  • Initializer

    Declaration

    Swift

    public init(
        projectionLength: Measurement<UnitLength> = .tt.kilometers(5),
        windowLength: Measurement<UnitLength> = .tt.kilometers(1),
        overlapLength: Measurement<UnitLength> = .tt.meters(200)
    )

    Parameters

    projectionLength

    Determines how far ahead of the current position the route should be projected. Default value is 5 in kilometers.

    windowLength

    Determines the length of one projection window.Default value is 1 in kilometers.

    overlapLength

    Determines how much of the previously-projected parts should be included in the new projection.Default value is 200 in meters

Public

  • Determines how far ahead of the current position the route should be projected.

    Declaration

    Swift

    public let projectionLength: Measurement<UnitLength>
  • Determines the length of one projection window.

    Declaration

    Swift

    public let windowLength: Measurement<UnitLength>
  • Determines how much of the previously-projected parts should be included in the new projection.

    Declaration

    Swift

    public let overlapLength: Measurement<UnitLength>