forked from n6cta/mwtchahrd
Parse APRS-style location out of beacons #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Separating this from #5.
Otherwise, N6CTA's mobile BBS won't show up in the right place. :-)
https://rust-lang-nursery.github.io/rust-cookbook/text/regex.html
https://www.aprs.org/doc/APRS101.PDF
Should probably split these into two regex statements.
Made a ton of progress tonight. This should be able to be turned into a function. Not committed to this repo yet. I learned a lot about capture groups!
Currently it does account for the position ambiguity in the APRS spec (you can put spaces in), but I ran out of time to
mmandlonif ambiguity is not defined with spacesI guess I could just replace the spaces with either
before converting string to numeric.
Another snapshot. This replaces ambiguation spaces with a random integer, but I didn't carry the same pattern over yet.
More progress. I got really slowed down looking for a way to return a None tuple that was also f64.