sdk-routing / com.tomtom.online.sdk.routing.route / ElectricVehicleDescriptor / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of ElectricVehicleDescriptor. Once constructed, the user cannot change the field values.

Constructors

<init>

Builder(vehicleConsumption: ElectricVehicleConsumption)

Builder used to create an instance of ElectricVehicleDescriptor. Once constructed, the user cannot change the field values.

Functions

build

fun build(): ElectricVehicleDescriptor

Creates a new instance of the ElectricVehicleDescriptor.

vehicleDimensions

fun vehicleDimensions(vehicleDimensions: VehicleDimensions): ElectricVehicleDescriptor.Builder

Specifies the dimensions of the vehicle.

vehicleEfficiency

fun vehicleEfficiency(vehicleEfficiency: VehicleEfficiency): ElectricVehicleDescriptor.Builder

Specifies the efficiency of the vehicle.

vehicleRestrictions

fun vehicleRestrictions(vehicleRestrictions: VehicleRestrictions): ElectricVehicleDescriptor.Builder

Specifies the restriction that this vehicle should be subjected to.