AllowOptions

public struct AllowOptions : Hashable

The options explicitly allowed by user for route calculations.

  • A flag that specifies whether HOV lanes can be used in the route calculation.

    A HOV (High occupancy Vehicle) lane or carpool lane is reserved for carpool usage. Carpool lane requires a minimum number of passengers in order for the car to use the carpool lane.

    Note: Can be used with RoutingOptions.transport_specification.vehicle_specification.occupancy to specify the number of occupants in the vehicle.

    Declaration

    Swift

    public var allowHov: Bool
  • A flag that specifies whether HOT lanes can be used in the calculation.

    HOT (high-occupancy toll) lanes are HOV lanes where vehicles that do not qualify as high-occupancy are allowed to pass by paying a toll.

    Note: Can be used with RoutingOptions.transport_specification.vehicle_specification.occupancy to specify the number of occupants in the vehicle.

    Declaration

    Swift

    public var allowHot: Bool
  • Creates a new instance.

    • Parameters

      • allowHov: A flag that specifies whether HOV lanes can be used in the route calculation.

      A HOV (High occupancy Vehicle) lane or carpool lane is reserved for carpool usage. Carpool lane requires a minimum number of passengers in order for the car to use the carpool lane.

      Note: Can be used with RoutingOptions.transport_specification.vehicle_specification.occupancy to specify the number of occupants in the vehicle.

      • allowHot: A flag that specifies whether HOT lanes can be used in the calculation.

      HOT (high-occupancy toll) lanes are HOV lanes where vehicles that do not qualify as high-occupancy are allowed to pass by paying a toll.

      Note: Can be used with RoutingOptions.transport_specification.vehicle_specification.occupancy to specify the number of occupants in the vehicle.

    Declaration

    Swift

    public init(allowHov: Bool = false, allowHot: Bool = false)