View Source PorscheConnEx.Struct.Unit.Distance (porsche_conn_ex v0.1.0)

Structure representing units of distance.

Fields

  • unit (atom) — units used, depends on locale
    • :km — kilometres
    • :mi — miles
  • value (float) — value in above units
  • km (float) — kilometres equivalent

Like most units in this API, a normalised value (km) is included, regardless of locale settings.

Summary

Types

@type t() :: %PorscheConnEx.Struct.Unit.Distance{
  km: float(),
  unit: unit(),
  value: float()
}
@type unit() :: :km | :mi