sdk-routing / com.tomtom.online.sdk.routing.route.vehicle / VehicleEfficiency / Builder

Builder

@PublicPreview("2021.06") class Builder

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

Constructors

<init>

Builder()

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

Functions

accelerationEfficiency

fun accelerationEfficiency(accelerationEfficiency: Double): VehicleEfficiency.Builder

Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates.

build

fun build(): VehicleEfficiency

Creates a new instance of the VehicleEfficiency.

decelerationEfficiency

fun decelerationEfficiency(decelerationEfficiency: Double): VehicleEfficiency.Builder

Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates.

downhillEfficiency

fun downhillEfficiency(downhillEfficiency: Double): VehicleEfficiency.Builder

Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation.

uphillEfficiency

fun uphillEfficiency(uphillEfficiency: Double): VehicleEfficiency.Builder

Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation.