youssefhabri / rust-nmea

NMEA 0183 parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NMEA

Version Build Status Build status License

NMEA 0183 sentence parser for Rust.

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

Complete Documentation

Usage

Put this in your Cargo.toml:

[dependencies]
nmea = "0.0.7"

And 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;

let mut nmea = Nmea::new();
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);

About

NMEA 0183 parser

License:Other


Languages

Language:Rust 100.0%