Skip to content

ColemanURT/homegrown-nmea

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMEA 0183 parser and formatter

github.com/HomegrownMarine

Usage

var nmea = require('homegrown-nmea');

var message = '$GPRMC,030000,A,4740.36415,N,12225.35953,W,000.02,059.5,160612,016.6,E*52';

//make sure checksum is correct. nmea.validate(message);

var data = nmea.parse(message);

{ msg: 'GPRMC,030000,A,4740.36415,N,12225.35953,W,000.02,059.5,160612,016.6,E', type: 'rmc', lat: 47.67273583333334, latStr: '4740.36415,N', lon: -122.42265883333333, lonStr: '12225.35953,W', time: /* moment time */, variation: -16.6, sog: 0.02, cog: 59.5 }

About

nmea parser/formatter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%