pub struct AprsPosition {
pub latitude: f64,
pub longitude: f64,
pub symbol_table: char,
pub symbol_code: char,
pub speed_knots: Option<u16>,
pub course_degrees: Option<u16>,
pub comment: String,
pub weather: Option<AprsWeather>,
pub extensions: AprsDataExtension,
pub mice_message: Option<MiceMessage>,
pub mice_altitude_m: Option<i32>,
pub ambiguity: PositionAmbiguity,
}Expand description
A parsed APRS position report.
Includes optional speed/course fields populated by Mic-E decoding and
optional embedded weather data populated when the station reports with
the weather-station symbol code _. Data extensions (course/speed,
PHG, altitude, DAO) found in the comment field are parsed
automatically and exposed via Self::extensions.
Fields§
§latitude: f64Latitude in decimal degrees (positive = North).
longitude: f64Longitude in decimal degrees (positive = East).
symbol_table: charAPRS symbol table identifier character.
symbol_code: charAPRS symbol code character.
speed_knots: Option<u16>Speed in knots (from Mic-E or course/speed extension).
course_degrees: Option<u16>Course in degrees (from Mic-E or course/speed extension).
comment: StringOptional comment/extension text after the position.
weather: Option<AprsWeather>Optional weather data embedded in the position comment.
Populated when the symbol code is _ (weather station) and the
comment starts with the DDD/SSS wind direction/speed extension,
followed by the remaining weather fields. See APRS 1.0.1 §12.1.
extensions: AprsDataExtensionParsed data extensions (course/speed, PHG, altitude, DAO) found in the comment field.
Populated automatically by parse_aprs_position via
parse_aprs_extensions. Fields that aren’t present in the
comment are None.
mice_message: Option<MiceMessage>Mic-E standard message code (only populated by
crate::mic_e::parse_mice_position).
mice_altitude_m: Option<i32>Mic-E altitude in metres, decoded from the comment per APRS 1.0.1
§10.1.1 (three base-91 chars followed by }, offset from -10000).
ambiguity: PositionAmbiguityPosition ambiguity level (APRS 1.0.1 §8.1.6).
Stations can deliberately reduce their precision by replacing
trailing lat/lon digits with spaces; this field records how many
digits were masked. Mic-E and compressed positions do not use
ambiguity and always report PositionAmbiguity::None.
Trait Implementations§
Source§impl Clone for AprsPosition
impl Clone for AprsPosition
Source§fn clone(&self) -> AprsPosition
fn clone(&self) -> AprsPosition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more