TencentNavKit

TNKDriveNavManager.h
Go to the documentation of this file.
1//
2// TNKDriveNavManager.h
3// TencentNavKit
4//
5// Created by mol on 2022/7/26.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKBaseNavManager.h>
10#import <TencentNavKit/TNKDriveCommonObj.h>
11#import <TencentNavKit/TNKDriveNavDelegate.h>
12#import <TencentNavKit/TNKSearchTask.h>
13#import <TencentNavKit/TNKDriveNavDataSource.h>
14
15NS_ASSUME_NONNULL_BEGIN
16
18// * @brief 途经点移除策略
19// */
20//typedef enum _TNKWaypointRemovedStrategy
21//{
22// /// 默认策略。到达途经点后SDK自动判达。
23// TNKWaypointRemovedStrategyDefault = 0,
24// /// 开发者移除策略。达到途经点如果想要移除该途经点，需要开发者调用changeWayPoints方法重新算路
25// TNKWaypointRemovedStrategyManually = 1,
26//} TNKWaypointRemovedStrategy;
27
28
30@interface TNKDriveNavManager : TNKBaseNavManager
31
33+ (instancetype)sharedInstance;
34
38@property (nonatomic, assign, getter=isMultiRoutesEnabled) BOOL multiRoutesEnabled;
39
44@property (nonatomic, assign) BOOL showMultiRoutesWhenStartNav;
45
50@property (nonatomic, assign) TNKNavTTSMode ttsMode;
51
52
57@property (nonatomic, assign) int routePlanCacheSize;
58
62@property (nonatomic, readonly, nullable) TNKDriveNavRoute *curNavRoute;
63
67@property (nonatomic, readonly, nullable) NSArray<TNKDriveNavRoute *> *backupNavRoutes;
68
73@property (nonatomic, assign) TNKWaypointRemovedStrategy waypointRemovedStrategy;
74
78@property (nonatomic, weak, nullable) id<TNKDriveNavDataSource> navDataSource;
79
87- (void)registerNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
88
93- (void)unregisterNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
94
98- (void)unregisterAllNavDelegates;
99
109- (TNKSearchTask * _Nullable)searchRoutesWithRequest:(TNKDriveRouteRequest *)request
110 completion:(void (^)(TNKDriveRouteSearchResult * _Nullable searchResult,
111 NSError * _Nullable error))completion;
112
119- (int)changeToBackupRoute:(NSString *)routeID;
120
127- (int)deleteBackupRoute:(NSString *)routeID;
128
133- (void)deleteAllBackupRoutes;
134
139- (void)requestTts;
140
147- (void)setDestArriveOffRouteRadius:(int)destArriveRadius destOffRouteRadius:(int)destOffRouteRadius;
148
149@end
150
151NS_ASSUME_NONNULL_END
TNKDriveRouteRequest
驾车算路请求类
Definition: TNKDriveCommonObj.h:323
TNKDriveRouteSearchResult
驾车算路返回数据类
Definition: TNKDriveCommonObj.h:474
TNKSearchTask
路线规划任务类
Definition: TNKSearchTask.h:17