reader

package
v0.0.0-...-3ce16b1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Points

func Points(r io.Reader) ([][]GPXTrkPoint, error)

Types

type GPX

type GPX struct {
	Tracks []struct {
		Segments []struct {
			Points []GPXTrkPoint `xml:"trkpt"`
		} `xml:"trkseg"`
	} `xml:"trk"`
}

type GPXExtension

type GPXExtension struct {
	XMLName xml.Name
	Value   float64 `xml:",chardata"`
}

type GPXExtensionSet

type GPXExtensionSet struct {
	Children []GPXExtension `xml:",any"`
}

func (GPXExtensionSet) Named

func (e GPXExtensionSet) Named(name string) GPXExtension

type GPXTrkPoint

type GPXTrkPoint struct {
	Lat        float64         `xml:"lat,attr"`
	Lon        float64         `xml:"lon,attr"`
	Time       time.Time       `xml:"time"`
	Extensions GPXExtensionSet `xml:"extensions"`
}

Jump to

Keyboard shortcuts

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