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 in seconds. Must be within 60 seconds (1 minute) and 1_800 seconds (30 minutes)

    sarType

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