NMEA Parser for Rust
This Rust crate aims to cover the most important AIS and GNSS sentences. It supports both class A and B types of AIS.
Usage
Include the following fragment in your Cargo.toml file:
[]
= "0.3.1"
The following sample program uses the crate to parse the given NMEA sentence and to print some fields of the resulting data object:
use *;
let mut store = new;
let sentences = vec!;
for sentence in sentences
The program outputs the following lines:
MMSI: 271041815
Flag: TR
Name: PROGUY
Type: passenger
System: Galileo
Latitude: 48.117°
Longitude: 11.517°
Features
The following features are included in the current version of the crate.
| Feature | Description |
|---|---|
| AIS sentences | VDM/VDO types 1-3, 5, 18-19 and 24 |
| GNSS sentences | GGA, RMC, GSA, GSV, VTG, GLL |
| Satellite systems | GPS, GLONASS, Galileo, BeiDou, NavIC and QZSS |
Roadmap
Until version 1.0 refactoring and renaming of crate's code elements is likely to happen.
| Version | Category | Goal |
|---|---|---|
| 0.4 | AIS | AIS VDM/VDO t4, t6-t17, t20-t23, t25-27 |
| 1.0 | meta | Stable API, optimizations, enhanced documentation |
| 1.1 | GNSS | ALM, TRF, STN, VBW, XTC, XTE, ZDA |
| 1.2 | GNSS, route | AAM, BOD, BWC, R00, RMB, RTE, WPL, ZTG |
| 1.3 | GNSS, misc | APB, DTM, RMA, GRS, GST, MSK, MSS, STN, VBW |