This is a NMEA library for the Go programming language (http://golang.org).
go get github.com/adrianmo/go-nmea
After this command go-nmea is ready to use. Its source will be in:
$GOPATH/src/github.com/adrianmo/go-nmea
At this moment, this library supports the following sentence types:
- GPRMC - Recommended minimum specific GPS/Transit data
- GPGGA - Global Positioning System Fix Data
- GPGSA - GPS DOP and active satellites
- GPGLL - Geographic Position, Latitude / Longitude and time
- PGRME - Estimated Position Error (Garmin proprietary sentence)
I will implement new types whenever I find some time. Also feel free to implement it yourself and send a pull-request to include it to the library.
package main
import (
"fmt"
"github.com/adrianmo/go-nmea"
)
func main() {
m, err := nmea.Parse("$GPRMC,220516,A,5133.82,N,00042.24,W,173.8,231.8,130694,004.2,W*70")
if err == nil {
fmt.Printf("%+v\n", m)
}
}