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 Track ¶
type Track struct { XMLName xml.Name `xml:"trk"` TrackSegments []TrackSegment `xml:"trkseg"` Name string `xml:"name"` }
type TrackPoint ¶
type TrackSegment ¶
type TrackSegment struct { XMLName xml.Name `xml:"trkseg"` TrackPoints []TrackPoint `xml:"trkpt"` }
Click to show internal directories.
Click to hide internal directories.