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,
14 TNKRideRoute,
15 TNKWalkRoute;
16
20 typedef enum _TNKRerouteReason
21{
22 TNKRerouteReasonOffRoute = 1,
23 TNKRerouteReasonChangingRoadType = 2,
24 TNKRerouteReasonRefreshing = 3,
25 TNKRerouteReasonChangingDestination = 4,
26 TNKRerouteReasonChangingWayPoints = 5,
27 TNKRerouteReasonChangingDestinationAndWayPoints = 6,
28 TNKRerouteReasonChangingSearchOptions = 7,
29 TNKRerouteReasonRestoringRoute = 8,
30} TNKRerouteReason;
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
TNKRerouteReason
enum _TNKRerouteReason TNKRerouteReason
重新算路类型.
_TNKRerouteReason
_TNKRerouteReason
重新算路类型.
Definition: TNKRerouteCommon.h:21
TNKRerouteReasonRefreshing
@ TNKRerouteReasonRefreshing
手动路线刷新重算
Definition: TNKRerouteCommon.h:24
TNKRerouteReasonChangingDestination
@ TNKRerouteReasonChangingDestination
修改目的地重算
Definition: TNKRerouteCommon.h:25
TNKRerouteReasonRestoringRoute
@ TNKRerouteReasonRestoringRoute
乘客选路重算
Definition: TNKRerouteCommon.h:29
TNKRerouteReasonOffRoute
@ TNKRerouteReasonOffRoute
偏航重算
Definition: TNKRerouteCommon.h:22
TNKRerouteReasonChangingRoadType
@ TNKRerouteReasonChangingRoadType
平行路道路类型切换重算
Definition: TNKRerouteCommon.h:23
TNKRerouteReasonChangingWayPoints
@ TNKRerouteReasonChangingWayPoints
修改途径点重算
Definition: TNKRerouteCommon.h:26
TNKRerouteReasonChangingSearchOptions
@ TNKRerouteReasonChangingSearchOptions
修改算路策略
Definition: TNKRerouteCommon.h:28
TNKRerouteReasonChangingDestinationAndWayPoints
@ TNKRerouteReasonChangingDestinationAndWayPoints
修改目的地以及途径点重算
Definition: TNKRerouteCommon.h:27
TNKDriveRerouteResult
驾车重新算路结果
Definition: TNKRerouteCommon.h:36
TNKDriveRerouteResult::searchRoute
TNKDriveRoute * searchRoute
重算新路线数据，重算成功时不为空。
Definition: TNKRerouteCommon.h:44
TNKDriveRerouteResult::rerouteReason
TNKRerouteReason rerouteReason
重算路的原因
Definition: TNKRerouteCommon.h:38
TNKDriveRerouteResult::error
NSError * error
重算失败的错误信息，重算失败时不为空。
Definition: TNKRerouteCommon.h:41
TNKDriveRoute
算路的路线数据类
Definition: TNKDriveCommonObj.h:374
TNKRideRerouteResult
骑行重新算路结果
Definition: TNKRerouteCommon.h:52
TNKRideRoute
算路的路线数据类
Definition: TNKRideCommonObj.h:18
TNKWalkRerouteResult
步行重新算路结果
Definition: TNKRerouteCommon.h:68
TNKWalkRoute
算路的路线数据类
Definition: TNKWalkCommonObj.h:18