Skip to main content

Location simulation

UX Framework provides the ability to simulate location for debug purposes. It might be useful when you need to test your application in a particular location, but have no ability to simulate location. Once you enable location simulation it allows you to specify a default location, manage simulated location on UI and simulate navigation along the route.

Enabled Location Simulation does not allow you to use another location provider simultaneously.

To turn on location simulation mode you will need to enable it through the configuration and specify a coordinate as default location for the simulation mode.

applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
locationSimulation {
defaultLocation = Location(LocationManager.PASSIVE_PROVIDER).apply {
latitude = 38.899929
longitude = -77.03394
Was this page helpful?