node-nmea
Decoder for NMEA Sentences.
NMEA Sentences supported
- RMC
Install
$ npm install nmea-decoder --save
Usage
const nmea = ; // Decode RMC Sentencelet result = nmea; // output//// {// timestamp: 180605,// status: 'A',// latitude: 29.084993066666666,// ns: 'N',// longitude: -110.96983556666666,// ew: 'W',// speed: 0,// datestamp: 161216,// variation: 0,// vew: 'E',// checksum: '34'// }
Type Definitions
RMC
timestamp
(number) : UTC of position fix.status
(string) : Data status (A=ok, V=invalid).latitude
(number) : Current latitude.ns
(string) : n=North, s=South.longitude
(number) : Current longitude.ew
(string) : e=East, w=West.speed
(number) : Speed over ground in knots.trueCourse
(number) : Track made good in degrees True.datestamp
(number) : UT Date.variation
(number) : Magnetic variation degrees (Easterly var. subtracts from true course).vew
(string) : e=East, w=West.checksum
(string) : Checksum.
Test
$ npm test