Skip to content
A gps daemon with a gRPC API, can also map match against a local OSRM
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
data first commit Jul 22, 2018
gpssvc
vendor
.gitignore
Gopkg.lock
Gopkg.toml
README.md

README.md

gpsd

A gps daemon with a gRPC API

Used for my own car system project see this blogpost

Usage

Usage of ./cmd/gpsd/gpsd:
  -adjustTime
        adjust time from GPS
  -debug
        enable debug
  -device string
        Device path (default "/dev/ttyACM0")
  -fakeCount int
        how many fake NMEA lines per sequences (default 3)
  -fakePath string
        fake NMEA data file for debug
  -grpcPort int
        grpc port to listen (default 9402)
  -logNMEA
        log all NMEA output in current directory
  -osmrAddr string
        OSRM API address (default "http://localhost:5000")
  -speed int
        Speed in bauds (default 38400)
  -timeout duration
        Timeout in second (default 4s)

API

A gRPC API is exposed for a client to retrieve the positions updates:

rpc LivePosition(google.protobuf.Empty) returns (stream Position);

Look in cmd/gpsc for an example client.

Notes

You need some privileges to use adjustTime, on Linux use root user or sudo setcap cap_sys_time+ep /path/for/gpsd.

You can’t perform that action at this time.