Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.72 KB

README.md

File metadata and controls

62 lines (42 loc) · 1.72 KB

Version Build Status codecov License

Complete Documentation

NMEA 0183 sentence parser for Rust.

Currently only GGA, GSV, GSA, VTG and RMC sentences are supported. Feel free to open PR and add others.

NMEA 0183 is a combined electrical and data specification for communication between marine electronics such as echo sounder, sonars, anemometer, gyrocompass, autopilot, GPS receivers and many other types of instruments.

https://en.wikipedia.org/wiki/NMEA_0183

Usage

Put this in your Cargo.toml:

[dependencies]
nmea = "0.2.0"

For Rust 2015 edition put this in your crate root:

extern crate nmea;

To use the NMEA parser create a Nmea struct and feed it with NMEA sentences:

use nmea::Nmea;

fn main() {
    let mut nmea = Nmea::default();
    let gga = "$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76";
    
    nmea.parse(gga).unwrap();
    println!("{}", nmea);
}

License

This project is licensed under the Apache-2.0.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the project by you, shall be licensed as Apache-2.0, without any additional terms or conditions.