Many applications do not rely on the GPS orientation. Those applications use the device accelerometer or gyroscope to determine the bearing of the device. Those device sensors are not yet supported.
The GPS widget allows real-time activation and modifications of a position, accuracy, and bearing.
Single Position
Genymotion Desktop. Genymotion SaaS. Genymotion PaaS.
Click to open the GPS widget window.
To set a single position:
Requirements and inputs
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.
Many applications do not rely on the GPS orientation. Those applications use the device accelerometer or gyroscope to determine the bearing of the device. That device sensor bearing is not emulated yet. You can use the device link feature to use a real device with accelerometer and/or gyroscope.
> Warning: You have to allow your browser to access your location.
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).
Then, click APPLY to set the values.
Parameter values (alternate input ranges)
Set a value for each parameter.
| Value range | Note | |---|---| | Latitude: -90° to 90°. | | | Longitude: -180° to 180°. | | | Altitude: -10000m to 10000m. | | | Accuracy: 0m to 200m. | 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. | |
Many applications do not rely on GPS orientation. Those applications use the device accelerometer or gyroscope to determine the device bearing instead. Those device sensors are not supported yet.
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
Genymotion Desktop. Genymotion SaaS. Genymotion PaaS.
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.