9.13. Simulation of location data

How to use a third party software as a source of location data for your device.

Install a mock location app. For example, this one.

Turn on Developer mode on your smart phone. To do so, tap the Build number 7 times (in Software information).

../../_images/ngm_enter_developer_mode_en.png

Pic. 9.109. Enabling developer mode

In the Developer options select mock location app installed on step 1.

../../_images/ngm_developer_options_en.png

Pic. 9.110. Opening developer settings

../../_images/ngm_select_mock_location_app_en.png

Pic. 9.111. Selecting mock location app

Open the mock location app. Create a simulation, name it.

../../_images/ngm_new_simulation_en.png

Pic. 9.112. Creating a simulation

Select a point on the map (or use current location) and tap Play.

../../_images/ngm_select_point_play_en.png

Pic. 9.113. Selecting point on the map

../../_images/ngm_in_progress_en.png

Pic. 9.114. Simulation in progress

From that moment on your smart phone will get coordinates of your current location from the app. Open NextGIS Mobile to see that it works.

../../_images/ngm_simulated_location_en.png

Pic. 9.115. Coordinates from an external source in NextGIS Mobile