Webportal v1

embedded apps

API Reference - Car.GetFuelUnit()

Car.GetFuelUnit()

Type Method
Min Privacy Full
wave 2
wave 3
wave 4

Car.GetFuelUnit()

Description Gets the currently used fuel unit.
Response String The fuel unit, Possible values are: - l, - gal
Parameter Void

Example

1
2
3
4
5
if (Car.GetFuelUnit() === 'l') {
	var FuelUnit = 'Litre'
} else {
	var FuelUnit = 'Gallon'
}

Appeared in Software version 5.14.11.30