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

Fig. 1096. Enabling developer mode#

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

../../_images/ngm_developer_options_en.png

Fig. 1097. Opening developer settings#

../../_images/ngm_select_mock_location_app_en.png

Fig. 1098. Selecting mock location app#

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

../../_images/ngm_new_simulation_en.png

Fig. 1099. Creating a simulation#

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

../../_images/ngm_select_point_play_en.png

Fig. 1100. Selecting point on the map#

../../_images/ngm_in_progress_en.png

Fig. 1101. 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

Fig. 1102. Coordinates from an external source in NextGIS Mobile#