auto_gps

package
v0.0.0-...-a1931d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGps

type AutoGps struct {
	TPV     *gpsd.TPV
	Tz      string
	Spatial *sql.DB
}

func New

func New() *AutoGps

func (*AutoGps) BuildDatabase

func (Agps *AutoGps) BuildDatabase()

func (*AutoGps) FindNearestTowns

func (Agps *AutoGps) FindNearestTowns(lat float64, lon float64) []string

func (*AutoGps) GetCompassDirection

func (Agps *AutoGps) GetCompassDirection(direction float64) string

func (*AutoGps) Monitor

func (Agps *AutoGps) Monitor()

type Location

type Location struct {
	City      string
	State     string
	Tz        string
	Distance  float64
	Direction float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL