View Source PorscheConnEx.Struct.Unit.Consumption.Fuel (porsche_conn_ex v0.1.0)
Structure representing a ratio of fuel consumed versus distance travelled.
Fields
unit
(atom) — units used, depends on locale:litres_per_100km
— litres of fuel per hundred kilometres (L/100km):miles_per_gallon
- miles per gallon of fuel (mpg)
value
(float) — value in above unitslitres_per_100km
(float) — L/100km equivalent
Note that the ratios are inverted for metric versus imperial — metric is fuel per unit of distance travelled (and lower numbers are more efficient), while imperial is distance travelled per unit of fuel (and higher numbers are more efficient).
Like most units in this API, a normalised value (litres_per_100km
) is
included, regardless of locale settings.
Since my car does not use fuel, I cannot report on the original unit or the expected precision of fuel consumption values. However, if this unit follows the trend of other units in this API, it's likely that the metric value is the original precise value, and the imperial value is a conversion of that.
Summary
Types
@type unit() :: :litres_per_100km | :miles_per_gallon