MatchPoint

data class MatchPoint(val lat: Double, val lng: Double, val radiusM: Double, val timeMs: Long)

One point as a map-matching request wants it: a coordinate, how much to trust it, and when it was recorded.

radiusM should come from Fix.accuracyM — it tells the matcher how far from the raw point the true road position is allowed to be. A tight radius on a noisy fix makes the matcher discard a point it could have used; a loose radius on a good fix makes it snap to the wrong nearby road. Passing the fix's own accuracy is the only value that is honest in both directions.

Constructors

Link copied to clipboard
constructor(lat: Double, lng: Double, radiusM: Double, timeMs: Long)

Properties

Link copied to clipboard
val lat: Double
Link copied to clipboard
val lng: Double
Link copied to clipboard
Link copied to clipboard