Pedestrian
public struct Pedestrian : Vehicle
A pedestrian.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates pedestrian.
Declaration
Swift
public init(maxSpeed: Measurement<UnitSpeed>? = defaultMaxSpeed, numberOfAxles: Int? = nil)
Parameters
maxSpeed
Specifies the max speed of the pedestrian.
numberOfAxles
Specifies the number of vehicle axles.
-
Specifies pedestrian 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