aprs-parser 0.1.1

APRS message parser for Rust
Documentation

aprs-parser

Build Status

APRS message parser for Rust

Usage

extern crate aprs_parser;

fn main() {
    let result = aprs_parser::parse(
        r"ICA3D17F2>APRS,qAS,dl4mea:/074849h4821.61N\01224.49E^322/103/A=003054"
    );

    println!("{:#?}", result);

    // Ok(
    //     APRSMessage {
    //         from: Callsign {
    //             call: "ICA3D17F2",
    //             ssid: None
    //         },
    //         to: Callsign {
    //             call: "APRS",
    //             ssid: None
    //         },
    //         via: [
    //             Callsign {
    //                 call: "qAS",
    //                 ssid: None
    //             },
    //             Callsign {
    //                 call: "dl4mea",
    //                 ssid: None
    //             }
    //         ],
    //         data: Position(
    //             APRSPosition {
    //                 timestamp: Some(
    //                     HHMMSS(
    //                         7,
    //                         48,
    //                         49
    //                     )
    //                 ),
    //                 latitude: 48.360165,
    //                 longitude: 12.408166,
    //                 comment: "322/103/A=003054"
    //             }
    //         )
    //     }
    // )
}

License

This project is licensed under either of

at your option.