NavigationOptions

public struct NavigationOptions : Equatable

A struct containing information about the navigation options

  • A struct containing information about the navigation stop options.

    See more

    Declaration

    Swift

    public struct StopOptions : Equatable
  • The struct containing information about the navigation stop options.

    Declaration

    Swift

    public let stopNavigationOptions: StopOptions
  • The distance measured in meters indicates when the user’s location will no longer be projected onto the itinerary and navigation will be recalculated. Default is 25 meters

    Declaration

    Swift

    public let userPositionThreshold: CLLocationDistance
  • The navigation recalculation time interval, measured in seconds, indicates the interval between consecutive navigation recalculations. An interval of less than 5 seconds is forbidden. Default is 5 seconds

    Declaration

    Swift

    public let navigationRecalculationTimeInterval: TimeInterval
  • Initializes and returns a newly allocated navigation options with the specified parameters.

    Declaration

    Swift

    public init(
        stopNavigationOptions: StopOptions = .init(),
        userPositionThreshold: CLLocationDistance = 25,
        navigationRecalculationTimeInterval: TimeInterval = 5
    )

    Parameters

    stopNavigationOptions

    The struct containing information about the navigation stop options.

    userPositionThreshold

    The distance measured in meters indicates when the user’s location will no longer be projected onto the itinerary and navigation will be recalculated. Default is 25 meters

    navigationRecalculationTimeInterval

    The navigation recalculation time interval, measured in seconds, indicates the interval between consecutive navigation recalculations. An interval of less than 5 seconds is forbidden. Default is 5 seconds