MapMatchingResult

class MapMatchingResult(val matchedLocation: MatchedLocation, val rawLocation: GeoLocation, val alternativeMatchedLocations: List<MatchedLocation> = emptyList(), val followedRouteIds: List<RouteId> = emptyList())

Output of the MapMatchingEngine that represents accurate (map matched) location. This is used in driving mode to snap the chevron shown on the map to the road network. MapMatchingEngine provides an individual map matching result for each raw location.

Constructors

Link copied to clipboard
constructor(matchedLocation: MatchedLocation, rawLocation: GeoLocation, locationPredictions: List<GeoLocation> = emptyList(), alternativeMatchedLocations: List<MatchedLocation> = emptyList(), followedRouteIds: List<RouteId> = emptyList())

Important: This is a Public Preview API. It may be changed or removed at any time.

constructor(matchedLocation: MatchedLocation, rawLocation: GeoLocation, alternativeMatchedLocations: List<MatchedLocation> = emptyList(), followedRouteIds: List<RouteId> = emptyList())

Properties

Link copied to clipboard

The list of alternative matched locations that were generated by the MapMatchingEngine. Can be empty.

Link copied to clipboard

The list of route ids that were passed to the MapMatchingEngine and that the matchedLocation is on.

Link copied to clipboard

The list of predicted locations that were generated by the MapMatchingEngine. They are useful when location updates from location service lag behind the current situation on the road. Can be empty.

Link copied to clipboard
Link copied to clipboard

The original raw location that was passed to the MapMatchingEngine.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this map matching result is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this map matching result.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the map matching result.