Aprs.Types.Position (aprs v2.0.0)

View Source

Represents position data with latitude, longitude, and associated metadata.

Summary

Functions

Return a map with latitude and longitude from decimal values.

Types

t()

@type t() :: %Aprs.Types.Position{
  aprs_messaging?: boolean() | nil,
  comment: String.t() | nil,
  compressed?: boolean() | nil,
  dao: map() | nil,
  latitude: float() | nil,
  longitude: float() | nil,
  position_ambiguity: non_neg_integer() | nil,
  symbol_code: String.t() | nil,
  symbol_table_id: String.t() | nil,
  timestamp: integer() | String.t() | nil
}

Functions

from_decimal(lat, lon)

@spec from_decimal(number(), number()) :: %{latitude: float(), longitude: float()}

Return a map with latitude and longitude from decimal values.