Help us shape the future of Go! Take the 2026 Go Developer Survey

simulatelocation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 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 Client

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

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Clear

func (c *Client) Clear() error

func (*Client) Close

func (c *Client) Close() error

func (*Client) PlayGPX

func (c *Client) PlayGPX(filename string) error

Simulate live tracking using a .gpx file

func (*Client) Set

func (c *Client) Set(latitude, longitude string) error

type Gpx

type Gpx struct {
	XMLName xml.Name `xml:"gpx"`
	Tracks  []Track  `xml:"trk"`
}

type Track

type Track struct {
	XMLName       xml.Name       `xml:"trk"`
	TrackSegments []TrackSegment `xml:"trkseg"`
	Name          string         `xml:"name"`
}

type TrackPoint

type TrackPoint struct {
	XMLName        xml.Name `xml:"trkpt"`
	PointLongitude string   `xml:"lon,attr"`
	PointLatitude  string   `xml:"lat,attr"`
	PointTime      string   `xml:"time"`
}

type TrackSegment

type TrackSegment struct {
	XMLName     xml.Name     `xml:"trkseg"`
	TrackPoints []TrackPoint `xml:"trkpt"`
}

Jump to

Keyboard shortcuts

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