MatchingConfig class

Route matching thresholds and weights.

Annotations

Constructors

MatchingConfig({double minSearchRadius = 25, double maxSearchRadius = 150, double searchRadiusAccuracyFactor = 3, double offRouteMinDistance = 40, double offRouteAccuracyFactor = 2.5, int offRouteConfirmSamples = 3, Duration offRouteConfirmDuration = const Duration(seconds: 5), int rejoinConfirmSamples = 2, double minBacktrack = 20, double headingWeight = 4, double progressWeight = 1, double backwardWeight = 2})
Creates matching settings.
const

Properties

backwardWeight → double
Weight of backward progress in the matching cost.
final
hashCode → int
The hash code for this object.
no setterinherited
headingWeight → double
Weight of heading disagreement in the matching cost.
final
maxSearchRadius → double
Candidate search radius bounds, metres.
final
minBacktrack → double
Minimum allowed backward progress tolerance, metres.
final
minSearchRadius → double
Candidate search radius bounds, metres.
final
offRouteAccuracyFactor → double
Off-route distance = max(min, factor × accuracy).
final
offRouteConfirmDuration → Duration
Minimum time spent deviating before confirming off-route.
final
offRouteConfirmSamples → int
Consecutive bad samples needed to confirm off-route.
final
offRouteMinDistance → double
Off-route distance = max(min, factor × accuracy).
final
progressWeight → double
Weight of progress discontinuity in the matching cost.
final
rejoinConfirmSamples → int
Consecutive good samples needed to rejoin.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchRadiusAccuracyFactor → double
Search radius = factor × accuracy (clamped).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited