MatchedLocation

class MatchedLocation(val location: GeoLocation, val id: Int, val probability: Probability, val isOnRoad: Boolean, val direction: Angle)

Part of the map matching result that represents a single matched position candidate.

Constructors

Link copied to clipboard
constructor(location: GeoLocation, id: Int, probability: Probability, isOnRoad: Boolean, direction: Angle)

Properties

Link copied to clipboard

The direction of the line segment on which the location is matched in degrees clockwise from North. It can be either the input heading from MapMatchingResult.rawLocation, or the direction of the closest road.

Link copied to clipboard
val id: Int

Identifier of the matched position candidate. For the best matches the id will change when the map matcher detects a matching error and applies correction. For the alternative matches the behavior depends on the underlying matching algorithm and is generally not guaranteed.

Link copied to clipboard

The flag indicating whether the matched position candidate is on the road.

Link copied to clipboard

The location that was matched on the map.

Link copied to clipboard
val probability: Probability

The score of the matched position in range 0-100.

Functions

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

Checks if this matched location is equal to another object.

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

Generates a hash code for this matched location.

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

Returns a string representation of the matched location.