LocationSimulationService

interface LocationSimulationService

Service to simulate the current location of the vehicle. This is useful for demonstrating and testing of the product.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val isLocationSimulationAllowed: Boolean

true to indicate that the LocationSimulationService is able to simulate a location.

Functions

Link copied to clipboard
abstract suspend fun startLocationSimulation(data: LocationSimulationData)

Starts the location simulation at the location provided in data. The IVI system will then see the simulated location in data as the current location rather than the real GPS location. Calling this API again will update the simulated location.

Link copied to clipboard
abstract suspend fun stopLocationSimulation()

Stops a previously started location simulation, if there was one. Android will then use the real GPS location. Does nothing if no location simulation was running.