# setLocation

Use this command to mock geolocation.

## Options

You must provide `latitude` and `longitude` using WSG84 standards.

```yaml
- setLocation:
    latitude: 51.45052532643149
    longitude: -2.594704204455719
```

## Examples

London:

```yaml
- setLocation:
    latitude: 51.50097409653078
    longitude: -0.1249077150114486
```

New York:

<pre class="language-yaml"><code class="lang-yaml"><strong>- setLocation:
</strong>    latitude: 40.76802189273503
    longitude: -73.98189327110484
</code></pre>

Toyko:

<pre class="language-yaml"><code class="lang-yaml"><strong>- setLocation:
</strong>    latitude: 35.658942712899254
    longitude: 139.74579265503593
</code></pre>

## Related Commands

[travel](https://docs.moropo.com/creating-tests/commands/travel "mention")
