View Source PorscheConnEx.Struct.Status.Range (porsche_conn_ex v0.1.0)
Structure describing the estimated travel distance available for a given propulsion system.
Used in PorscheConnEx.Struct.Status.RemainingRanges
structures.
Fields
engine_type
(atom) — the type of vehicle propulsion system:electric
for battery-electric propulsion- TODO: determine value for conventional engines
nil
if this propulsion method is not supported by this vehicle
primary?
(boolean) — whether this is the vehicle's primary propulsion systemdistance
(Distance
) — the estimated reamining travel distance available
Summary
Types
@type engine_type() :: :electric
@type t() :: %PorscheConnEx.Struct.Status.Range{ distance: PorscheConnEx.Struct.Unit.Distance.t() | nil, engine_type: engine_type() | nil, primary?: boolean() | nil }