# Mock Location

### With Query Parameter

To specify the device location, include the `location` query parameter in your app or embed URL, followed by the latitude and longitude values e.g.

```uri
&location=-33.924434,18.418391
```

See [Query Params Reference](https://docs.appetize.io/platform/query-params-reference#location) for more information.

### With JavaScript SDK

Set the location of the device via our JavaScript SDK

#### With Configuration

Specify the location by passing in a number array in format `[latitude, longitude]` e.g.

```typescript
await client.setConfig({
    location: [-33.924434, 18.418391],
    ...
})
```

See [Configuration](https://docs.appetize.io/javascript-sdk/configuration#location) for more information.

#### With setLocation()

Specify the location by passing in the number parameters `latitude` and `longitude` e.g.

```typescript
await setLocation(-33.924434, 18.418391)
```

See the [API Reference](https://docs.appetize.io/javascript-sdk/api-reference#setlocation) for more information.
