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.

Lifecycle

  • Map matching result obtained from the MapMatchingEngine

    Declaration

    Swift

    public init(
        location: GeoLocation,
        predictions: [GeoLocation] = [],
        followedRouteIds: [UUID] = [],
        mapPosition: MapPosition? = nil
    )

    Parameters

    location

    The matched GeoLocation

    predictions

    The generated predictions

    followedRouteIds

    The list of followed route ID’s

    mapPosition

    Position 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

    matchedLocation

    The MatchedLocation

    timestamp

    Timestamp in ticks since reboot.

    followedRouteIds

    The list of followed route ID’s

    alternativeMatchedLocations

    The alternative matched locations.

Public

  • 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 }