MapMatchingResult
public struct MapMatchingResult
Provides information about the status of the enhanced location updates generated by the map matching engine of the Navigation SDK.
-
The best possible location update, snapped to the route or map matched to the road if possible
Declaration
Swift
public var enhancedLocation: CLLocation
-
A list of predicted location points leading up to the target update.
The last point on the list (if it is not empty) is always equal to
enhancedLocation
.Declaration
Swift
public var keyPoints: [CLLocation]
-
Whether the SDK thinks that the user is off road.
Based on the
offRoadProbability
.Declaration
Swift
public var isOffRoad: Bool
-
Probability that the user is off road.
Declaration
Swift
public var offRoadProbability: Double
-
Returns true if map matcher changed its opinion about most probable path on last update.
In practice it means we don’t need to animate puck movement from previous to current location and just do an immediate transition instead.
Declaration
Swift
public var isTeleport: Bool
-
When map matcher snaps to a road, this is the confidence in the chosen edge from all nearest edges.
Declaration
Swift
public var roadEdgeMatchProbability: Double