TencentNavKit
TNKRerouteCommon.h
Go to the documentation of this file.
1//
2// TNKRerouteCommon.h
3// TencentNavKit
4//
5// Created by mol on 2022/12/7.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13@class TNKDriveRoute,
16
21{
31
35@interface TNKDriveRerouteResult : NSObject
36
38@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
39
41@property (nonatomic, readonly, nullable) NSError *error;
42
44@property (nonatomic, readonly, nullable) TNKDriveRoute *searchRoute;
45
46@end
47
51@interface TNKRideRerouteResult : NSObject
52
54@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
55
57@property (nonatomic, readonly, nullable) NSError *error;
58
60@property (nonatomic, readonly, nullable) TNKRideRoute *searchRoute;
61
62@end
63
67@interface TNKWalkRerouteResult : NSObject
68
70@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
71
73@property (nonatomic, readonly, nullable) NSError *error;
74
76@property (nonatomic, readonly, nullable) TNKWalkRoute *searchRoute;
77
78@end
79
80NS_ASSUME_NONNULL_END
enum _TNKRerouteReason TNKRerouteReason
重新算路类型.
_TNKRerouteReason
重新算路类型.
Definition: TNKRerouteCommon.h:21
@ TNKRerouteReasonRefreshing
手动路线刷新重算
Definition: TNKRerouteCommon.h:24
@ TNKRerouteReasonChangingDestination
修改目的地重算
Definition: TNKRerouteCommon.h:25
@ TNKRerouteReasonRestoringRoute
乘客选路重算
Definition: TNKRerouteCommon.h:29
@ TNKRerouteReasonOffRoute
偏航重算
Definition: TNKRerouteCommon.h:22
@ TNKRerouteReasonChangingRoadType
平行路道路类型切换重算
Definition: TNKRerouteCommon.h:23
@ TNKRerouteReasonChangingWayPoints
修改途径点重算
Definition: TNKRerouteCommon.h:26
@ TNKRerouteReasonChangingSearchOptions
修改算路策略
Definition: TNKRerouteCommon.h:28
@ TNKRerouteReasonChangingDestinationAndWayPoints
修改目的地以及途径点重算
Definition: TNKRerouteCommon.h:27
驾车重新算路结果
Definition: TNKRerouteCommon.h:36
TNKDriveRoute * searchRoute
重算新路线数据,重算成功时不为空。
Definition: TNKRerouteCommon.h:44
TNKRerouteReason rerouteReason
重算路的原因
Definition: TNKRerouteCommon.h:38
NSError * error
重算失败的错误信息,重算失败时不为空。
Definition: TNKRerouteCommon.h:41
算路的路线数据类
Definition: TNKDriveCommonObj.h:293
骑行重新算路结果
Definition: TNKRerouteCommon.h:52
算路的路线数据类
Definition: TNKRideCommonObj.h:18
步行重新算路结果
Definition: TNKRerouteCommon.h:68
算路的路线数据类
Definition: TNKWalkCommonObj.h:18