MapMatchingResult
public struct MapMatchingResult
The MapMatchingResult provides information about the matched location and its details.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Map matching result obtained from the
MapMatchingEngineDeclaration
Swift
public init( location: GeoLocation, predictions: [GeoLocation] = [], followedRouteIds: [UUID] = [], mapPosition: MapPosition? = nil )Parameters
locationThe matched
GeoLocationpredictionsThe generated predictions
followedRouteIdsThe list of followed route ID’s
mapPositionPosition with map information
-
Map matching result obtained from the
MapMatchingEngine.Declaration
Swift
public init( matchedLocation: MatchedLocation, timestamp: Measurement<UnitDuration> = .tt.seconds(0), predictions: [GeoLocation] = [], followedRouteIds: [UUID] = [], alternativeMatchedLocations: [MatchedLocation] = [] )Parameters
matchedLocationThe
MatchedLocationtimestampTimestamp in ticks since reboot.
predictionsThe list of predicted locations
followedRouteIdsThe list of followed route ID’s
alternativeMatchedLocationsThe alternative matched locations.
-
Contains the current matched location as well as predictions.
Declaration
Swift
public let matchedLocation: MatchedLocation -
The list of followed route ID’s
Declaration
Swift
public let followedRouteIds: [UUID] -
The monotonic time since boot.
Declaration
Swift
public let timestamp: Measurement<UnitDuration> -
List of alternative predictions
Declaration
Swift
public let alternativeMatchedLocations: [MatchedLocation] -
The list of predicted locations.
Declaration
Swift
public let predictions: [GeoLocation] -
The matched GeoLocation from matchedLocation
Declaration
Swift
public var geoLocation: GeoLocation { get }
MapMatchingResult Structure Reference