Skip to content

ahaberlach/go-nmea

 
 

Repository files navigation

go-nmea Build Status Coverage Status GoDoc

This is a NMEA library for the Go programming language (http://golang.org).

Installing

Using go get

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

Supported sentences

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.

Example

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

About

NMEA parser library for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%