TTMatcher

@interface TTMatcher : NSObject

Base class TTMatcher that describes base API for map/routing matching. Map/routing matching snaps inaccurate GPS probe to the given route. The reference route can be set manually or can be obtained from the map tiles, depending on the use case. @BETA

  • The delegate to receive matching results.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        id<TTMatcherDelegate> _Nullable delegate;

    Swift

    var delegate: TTMatcherDelegate? { get set }
  • Matching with match data set

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithMatchDataSet:(id<TTMatching> _Nonnull)matching;

    Swift

    init(matchDataSet matching: TTMatching)

    Parameters

    matching

    id

    Return Value

    TTMatcher

  • Snaps current location to the nearest route. The route can be set manually or can be obtained from the map tiles, depending on the use case.

    Declaration

    Objective-C

    - (void)setMatcherLocation:(TTMatcherLocation *_Nonnull)location;

    Swift

    func setMatcherLocation(_ location: TTMatcherLocation)

    Parameters

    location

    TTMatcherLocation