setLocation()
Overrides the Geolocation Position
Examples
await setLocation({ latitude: 27.1752868, longitude: 78.040009, accuracy:20 })
Parameters
| Name | Type | Description |
|---|---|---|
options |
Object | Latitude, longitude and accuracy to set the location. |
options.latitude |
number | Mock latitude |
options.longitude |
number | Mock longitude |
options.accuracy |
number | Mock accuracy |
Returns
| Type | Description |
|---|---|
Promise<void> |