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
        (
            travelMode: TravelMode,
            maxSpeed: Measurement<UnitSpeed>?
        )

    Parameters

    travelMode

    Specifies the mode of travel for the specified route.

    maxSpeed

    Specifies the max speed of the vehicle.

Public

  • Specifies the mode of travel for the specified route.

    Declaration

    Swift

    public let travelMode: TravelMode
  • Specifies the max speed of the vehicle.

    Declaration

    Swift

    public let maxSpeed: Measurement<UnitSpeed>?