Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

flxo/rust-nmea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4dc7598 · Apr 18, 2022
May 15, 2020
Jul 7, 2018
Apr 18, 2022
Apr 18, 2022
Apr 18, 2022
Nov 2, 2019
Jul 26, 2020
Apr 18, 2022
Jan 12, 2020
Mar 15, 2022
May 15, 2020

Repository files navigation

Version Build Status codecov 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.1.0"

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