gpx

package
v0.0.0-...-8bd485b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPXDataset

type GPXDataset struct {
	// contains filtered or unexported fields
}

func NewGPXDatasetFromDisk

func NewGPXDatasetFromDisk(paths ...string) (GPXDataset, error)

func NewGPXDatasetFromReader

func NewGPXDatasetFromReader(reader io.Reader) (GPXDataset, error)

func (*GPXDataset) AllPoints

func (g *GPXDataset) AllPoints() []gpx.GPXPoint

func (*GPXDataset) AtTime

func (g *GPXDataset) AtTime(t time.Time) (gpx.GPXPoint, error)

AtTime returns the closest point for a given time. If the time is not in the range of the points, then the first or last point is used. However, the offset of such matches are limited to 24hrs.

func (*GPXDataset) InRange

func (g *GPXDataset) InRange(t time.Time) (bool, bool)

InRange returns true if the given time is within the range of the loaded GPX data. The second return value is whether the time is before or after the range

Jump to

Keyboard shortcuts

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