LocationMapMatchedListener

Used to inform the caller that a new location has been map matched.

In order to listen to a location being map matched, implement this interface to create a listener, for instance:

val locationMapMatchedListener = LocationMapMatchedListener { mapMatchingResult ->
// Implement the necessary functionality for handling the map matching result
}

Subsequently, add this listener using TomTomNavigation.addLocationMapMatchedListener. To stop listening to a location being map matched, remove the listener using TomTomNavigation.removeLocationMapMatchedListener.

Functions

Link copied to clipboard
abstract fun onLocationMapMatched(mapMatchingResult: MapMatchingResult)

Called whenever a new MapMatchingResult has been generated by the MapMatchingEngine.