setLocation()
Overrides the Geolocation Position
Examples
Section titled “Examples”await setLocation({ latitude: 27.1752868, longitude: 78.040009, accuracy:20 })Parameters
Section titled “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
Section titled “Returns”| Type | Description |
|---|---|
Promise<void> |