Bicycle
public struct Bicycle : Vehicle
A vehicle of type bicycle.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates bicycle.
Declaration
Swift
public init(maxSpeed: Measurement<UnitSpeed>? = defaultMaxSpeed, numberOfAxles: Int? = nil)
Parameters
maxSpeed
Specifies the max speed of the bicycle. Default value:
defaultMaxSpeed
.numberOfAxles
Specifies the number of vehicle axles.
-
Specifies bicycle default max speed.
Declaration
Swift
public static let defaultMaxSpeed: Measurement<UnitSpeed>
-
Specifies the number of vehicle axles.
Declaration
Swift
public let numberOfAxles: Int?
-
Specifies the max speed of the vehicle.
Declaration
Swift
public let maxSpeed: Measurement<UnitSpeed>?
-
Specifies the vehicle type for the specified route.
Declaration
Swift
public let type: VehicleType