geo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenRoutes

func FlattenRoutes(gpx *gpx.GPX, layout geom.Layout) *geom.LineString

func FlattenTracks

func FlattenTracks(gpx *gpx.GPX, layout geom.Layout) *geom.LineString

Types

type GPX

type GPX interface {
	// GPX returns a gpx instance
	GPX() (*gpx.GPX, error)
}

GPX instances can return a gpx instance

type GeoJSON

type GeoJSON interface {
	GeoJSON() (*geojson.Feature, error)
}

type Summary

type Summary struct {
	Filename    string        `json:"filename,omitempty"`
	Tracks      int           `json:"tracks,omitempty"`
	Routes      int           `json:"routes,omitempty"`
	Segments    int           `json:"segments,omitempty"`
	Points      int           `json:"points,omitempty"`
	Waypoints   int           `json:"waypoints,omitempty"`
	Distance2D  unit.Length   `json:"distance2d,omitempty"`
	Distance3D  unit.Length   `json:"distance3d,omitempty"`
	Ascent      unit.Length   `json:"ascent,omitempty"`
	Descent     unit.Length   `json:"descent,omitempty"`
	StartTime   time.Time     `json:"start_time,omitempty"`
	MovingTime  unit.Duration `json:"moving_time,omitempty"`
	StoppedTime unit.Duration `json:"stopped_time,omitempty"`
}

func SummarizeRoutes

func SummarizeRoutes(gpx *gpx.GPX) *Summary

func SummarizeTracks

func SummarizeTracks(gpx *gpx.GPX) *Summary

func (Summary) TotalTime

func (s Summary) TotalTime() unit.Duration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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