ios_play_location_route
Replay a moving GPS route on an iOS device — the device's location walks the waypoints in order, so an app under test sees travel rather than a teleport. Give waypoints (at least two lat/lon pairs) with secondsPerLeg for the pace, or gpxPath for a GPX file that already exists on the server. Returns as soon as playback starts; poll ios_get_location to watch it advance and call ios_clear_location to stop it (the last point stays simulated until you do). iOS 17+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| gpxPath | No | Path to an existing GPX file ON THE SERVER. Mutually exclusive with waypoints. | |
| waypoints | No | Route to walk, in order. At least two points. Mutually exclusive with gpxPath. | |
| secondsPerLeg | No | Seconds spent travelling between consecutive waypoints. Default 2. |