polarsteps

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolarstepData

type PolarstepData struct {
	Locations []PolarstepLocation `json:"locations"`
}

type PolarstepLocation

type PolarstepLocation struct {
	Lat  float64 `json:"lat"`
	Lon  float64 `json:"lon"`
	Time float64 `json:"time"` // Unix timestamp in seconds.
}

type PolarstepLocationFile

type PolarstepLocationFile struct {
	Filepath string
}

func FindPolarstepsFiles

func FindPolarstepsFiles(root string) ([]*PolarstepLocationFile, error)

FindPolarstepsFiles searches the root filepath for locations.json files, and returns a polarstep Parser for each one.

func (*PolarstepLocationFile) Parse

func (*PolarstepLocationFile) String

func (p *PolarstepLocationFile) String() string

Jump to

Keyboard shortcuts

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