# travel

Similar to the [setLocation command](/creating-tests/commands/setlocation.md), the `travel` command allows you to mock the geolocation of the device.

However, instead of a static location, `travel` is used to mimic changes in device location over time.

You can use this to mock a journey such as a walk, run or drive.

## Options

The `travel` command has two mandatory parameters:

* `points` is a list of WSG84 coordinates (latitude, longitude) you wish to mock
* `speed` is the velocity in meters per second that the device will travel along the route defined by `points`

&#x20;For example, a run along the Thames in London at 8km per hour:

```yaml
- travel:
    points:
      - 51.500936162593405, -0.12405422599887701
      - 51.50081608114526, -0.1199550777358336
      - 51.50376868048361, -0.1192670878866242
    speed: 8

```

*Note: this step takes 5-10 minutes to execute.*

## Related Commands

[setLocation](/creating-tests/commands/setlocation.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moropo.com/creating-tests/commands/travel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
