Aprs.PositionComment (aprs v2.0.1)

View Source

Shared comment pipeline for object and item reports.

Objects and items carry the same trailing data as a position report: a course/speed extension, /A= altitude, RNG radio range, PHG, a DAO extension and, for the weather symbol, a weather report.

Summary

Functions

Run the comment pipeline over a parsed object or item position.

Functions

parse(position)

@spec parse(map()) :: map()

Run the comment pipeline over a parsed object or item position.

Takes the position map with its raw :comment, pulls out each extension in the order the reference parser uses, and returns the map with :comment cleaned and :course, :speed, :altitude, :radiorange, :phg, :dao and :weather filled in where the comment carried them. Any DAO precision is applied to :latitude and :longitude.