location

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLocationFile

func DefaultLocationFile() string

Types

type LocationConfig

type LocationConfig struct {
	Latitude     float32   `yaml:"latitude"`
	Longitude    float32   `yaml:"longitude"`
	LocTimestamp time.Time `yaml:"timestamp"`
	Altitude     float32   `yaml:"altitude"`
	Accuracy     float32   `yaml:"accuracy"`
}

func DefaultLocationConfig

func DefaultLocationConfig() LocationConfig

func (*LocationConfig) IsLocationEmpty

func (conf *LocationConfig) IsLocationEmpty() bool

func (*LocationConfig) ParseConfig

func (conf *LocationConfig) ParseConfig(buf []byte) error

ParseConfig stored in yaml bytes and sets default location if location is (0,0)

func (*LocationConfig) Validate

func (conf *LocationConfig) Validate() error

Jump to

Keyboard shortcuts

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