adrianmo / go-nmea

A NMEA parser library in pure Go
MIT License
227 stars 78 forks source link

Add support for WPL and RTE sentences #55

Closed quartercastle closed 5 years ago

quartercastle commented 5 years ago

Hey, thanks for the go-nmea package!

This PR adds support for WPL and RTE sentences.

I've added a new function called ListString in parser.go which is used to parse the waypoint idents in the RTE sentence. Not sure if this is the best way of doing it?

# Example data
$IIWPL,5503.4243,N,01037.0743,E,589*6F
$IIWPL,5503.4192,N,01037.1200,E,590*6B
$IIWPL,5503.4139,N,01037.1182,E,591*62
$IIWPL,5503.4190,N,01037.0725,E,592*68
$IIWPL,5503.4137,N,01037.0707,E,593*64
$IIWPL,5503.4086,N,01037.1164,E,594*6A
$IIWPL,5503.4033,N,01037.1146,E,595*65
$IIRTE,2,1,c,Rte 2019-0,589,590,591,592,593*4F
$IIRTE,2,2,c,Rte 2019-0,594,595*55
coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling dd1582033b1d8e852df628d96fe716e43dab5ab3 on kvartborg:add-wpl-and-rte-messages into 7572fbeb90aaa0bd3d1dcb674938ffbc0a943123 on adrianmo:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 133351cc2f6c956d85a369757a96e5e7e9f9b372 on kvartborg:add-wpl-and-rte-messages into 7572fbeb90aaa0bd3d1dcb674938ffbc0a943123 on adrianmo:master.

icholy commented 5 years ago

Good stuff