simlocation

package
v1.0.166 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetLocation

func ResetLocation(device ios.DeviceEntry) error

func SetLocation

func SetLocation(device ios.DeviceEntry, lat string, lon string) error

Set the device location to a point by latitude and longitude

func SetLocationGPX

func SetLocationGPX(device ios.DeviceEntry, filePath string) error

Simulate live tracking using a gpx file

Types

type Connection

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

func New

func New(device ios.DeviceEntry) (*Connection, error)

func (*Connection) Close

func (locationConn *Connection) Close()

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