mapMatch

fun mapMatch(transportationMode: TranspMode, waypoints: List<GeoPoint>, callback: MapMatchedPointCallback, getAddresses: Boolean = false)

Performs a map-matching (or road-matching) process for a specified type of vehicle. Map-matching consists of correcting uncertainties related to GPS measurements by repositioning a vehicle on most accurate segment of neighbouring roads.

Parameters

transportationMode

Transportation Mode used to map-match the GeoPoint. Unused for a Waypoint because we'll use the member Waypoint.transportationMode.

waypoints

List of GeoPoint (or Waypoint) to map-match.

callback

The list of map-matched Waypoints, or an error. See MapMatchedPointCallback.