Vehicle

public class Vehicle

Specifies the vehicle (or lack of one).

Important

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

Lifecycle

  • Declaration

    Swift

    public init
        (
            vehicleType: VehicleType,
            maxSpeed: Measurement<UnitSpeed>?
        )

    Parameters

    vehicleType

    Specifies the vehicle type for the specified route.

    maxSpeed

    Specifies the max speed of the vehicle.

Public

  • Specifies the vehicle type for the specified route.

    Declaration

    Swift

    public let vehicleType: VehicleType
  • Specifies the max speed of the vehicle.

    Declaration

    Swift

    public let maxSpeed: Measurement<UnitSpeed>?