View Source PorscheConnEx.Struct.Position (porsche_conn_ex v0.1.0)
Structure containing the current global position data for a particular vehicle.
This is the structure returned by PorscheConnEx.Client.position/2.
Fields
coordinates(struct) — the vehicle's geographic coordinateslatitude(float)longitude(float)reference_system(atom) — the coordinate reference system:wgs84is the only known value so far.
heading(integer) — the vehicle's compass heading- Not currently known whether range would be 0 to 359, or 1 to 360.
Summary
Types
@type coordinates() :: %PorscheConnEx.Struct.Position.Coordinates{ latitude: float(), longitude: float(), reference_system: ref_system() }
@type ref_system() :: :wgs84
@type t() :: %PorscheConnEx.Struct.Position{ coordinates: coordinates(), heading: 0..360 }