sdk-maps-driving-extensions / com.tomtom.online.sdk.map.driving / Matcher

Matcher

interface Matcher : NativeObject

Base interface that describes the base API for map matching. Map matching snaps the inaccurate GPS probe to the given route. The reference route can be set manually or can be obtained from the map tiles, depending on the use case.

Functions

match

abstract fun match(location: Location): Unit

Snaps the current location to the nearest route. The route can be set manually or can be obtained from the map tiles, depending on the use case.

setMatcherListener

abstract fun setMatcherListener(listener: MatcherListener): Unit

Sets a callback to receive matching results. This callback is always sent on a map thread.

Inheritors

NativeMatcher

class NativeMatcher : Matcher

A wrapper for a native object providing access to the matching algorithms.