RouteLegOptions

public struct RouteLegOptions

Options specific for concrete leg.

  • Initializes the options with the given supporting points and charging information, if any.

    Declaration

    Swift

    public init(supportingPoints: [CLLocationCoordinate2D], chargingInformation: ChargingInformation? = nil)

    Parameters

    supportingPoints

    A list of base route points to be used as input for route reconstruction.

    chargingInformation

    Information on how much to charge at a charging station.

  • Initializes the options with the given supporting points, charging information and routeType, if any.

    Important

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

    Declaration

    Swift

    public init(
        supportingPoints: [CLLocationCoordinate2D] = [],
        chargingInformation: ChargingInformation? = nil,
        routeType: RouteType? = nil
    )

    Parameters

    supportingPoints

    A list of base route points to be used as input for route reconstruction.

    chargingInformation

    Information on how much to charge at a charging station.

    routeType

    Strategy for selecting roads during route calculation.

  • A list of base route points to be used as input for route reconstruction.

    Declaration

    Swift

    public let supportingPoints: [CLLocationCoordinate2D]
  • Information on how much to charge at a charging station.

    Declaration

    Swift

    public let chargingInformation: ChargingInformation?
  • Strategy for selecting roads during route calculation.

    Important

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

    Declaration

    Swift

    public let routeType: RouteType?