Many applications do not rely on the GPS orientation. Many applications use the device accelerometer or gyroscope to determine the bearing of the device. Device accelerometer and gyroscope bearing determination is not yet supported.
The GPS widget allows real-time activation and modifications of a position, accuracy, and bearing.
Single Position
Many applications do not rely on the GPS orientation. Many applications use the device accelerometer or gyroscope to determine the bearing of the device. Device accelerometer and gyroscope bearing determination is not emulated yet. You can use the device link feature to use a real device with accelerometer and/or gyroscope.
Genymotion Desktop
Click to open the GPS widget window:
To set a single position:
1. Toggle the Activate GPS emulation switch. 2. Set the following values:
| | Description | Value range | | --- | --- | --- | | Latitude | The latitude value you wish to simulate. | -90° to 90° | | Longitude | The longitude value you wish to simulate. | -180° to 180° | | Altitude | The altitude value you wish to simulate. | -10000m to 10000m | | Speed | Set a speed in meters per second. | 0m/s to 99999.99m/s | | Accuracy | Use the slider or enter a value to set the accuracy. | 0m to 200m | | Bearing | Use the compass or enter a value to set the bearing. | 0° to 359.99° |
You can also define a location using the built-in map.
Genymotion SaaS
Click to open the GPS widget:
Set a value for each parameter:
| | Value range | | --- | --- | | Latitude | -90° to 90° | | Longitude | -180° to 180° | | Altitude | -10000m to 10000m | | Accuracy | 0m to 200m | | Bearing | 0° to 359.99° | | Speed | 0 m/s to 399.99 m/s |
You can also:
- Click MAP to open the built-in map and select a location.
- Click SET TO MY POSITION to get your current position (as returned by your browser).
> Warning: You have to allow your browser to access your location.
Then, click APPLY to set the values.
Genymotion PaaS
Click to open the GPS widget:
Set the following values:
| | Value range | Note | | --- | --- | --- | | Latitude | -90° to 90° | | | Longitude | -180° to 180° | | | Altitude | -10000 m to 10000 m | | | Accuracy | 0 m to 200 m | Use the slider or enter a value. | | Bearing | 0° to 359.99° | Use the compass or enter a value. | | Speed | 0 m/s to 399.99 m/s | |
You can also:
- Click MAP to open the built-in map and select a location.
- Click SET TO MY POSITION to get your current position (as returned by your browser).
> Warning: You have to allow your browser to access your location.
Then, click APPLY to set the values.
Simulate Routes
You can simulate routes by uploading a track file.
Requirements and limitations:- This feature only supports GPX and KML trace formats for now. More formats may be added in the future.
- GPX files must at least have one point with latitude and logitude data.
- If elevation is missing, it will default to 0.
- If timestamp is missing from a data point, it will default to the previous data point timestamp plus 1 second.
- If the data points are not in chronological order, they will be sorted before being played.
- If your trace file contains more than one track, only the first track will be played.
Here are examples of valid GPX and KML track files:
Usage:1. Generate a GPX or KML track file with your favourite application, such as GoogleEarth.
2. If it is not already enabled, toggle Activate GPS emulation on.
3. Toggle the Replay a GPS trace feature on:
4. Click Open to upload your trace file.
5. Click to start or pause the route simulation:
6. Change play speed by selecting a replay speed in the drop-down menu.
This feature is available through Genymotion Desktop, via the Cloud devices dashboard.
> Warning: This feature is not available with Genymotion PaaS at this time.