RouteOptions

public struct RouteOptions : Hashable

Options to configure Route for search along the route functionality

  • This enum describes how far from the route we can look for results

    See more

    Declaration

    Swift

    public enum Deviation : Hashable
  • Route to search along

    Declaration

    Swift

    public let route: Route
  • Route deviation parameters

    Note

    See also RouteOptions.Deviation

    Declaration

    Swift

    public let deviation: Deviation
  • Construct Route Options with custom deviation

    Declaration

    Swift

    public init(route: Route, deviation: Deviation)

    Parameters

    route

    Route with coordinates

    deviation

    Route deviation

  • Construct Route Options with Time route deviation

    Declaration

    Swift

    public init(route: Route, time: TimeInterval, sarType: Deviation.SARType = .isochrone)

    Parameters

    route

    Route with coordinates

    time

    Time route deviation

    sarType

    Quality of deviation calculation (better cost more). Defaults to .isochrone