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 TNKRerouteReasonOffRouteParamUpdate = 9,
31} TNKRerouteReason;
32
36@interface TNKDriveRerouteResult : NSObject
37
39@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
40
42@property (nonatomic, readonly, nullable) NSError *error;
43
45@property (nonatomic, readonly, nullable) TNKDriveRoute *searchRoute;
46
47@end
48
52@interface TNKRideRerouteResult : NSObject
53
55@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
56
58@property (nonatomic, readonly, nullable) NSError *error;
59
61@property (nonatomic, readonly, nullable) TNKRideRoute *searchRoute;
62
63@end
64
68@interface TNKWalkRerouteResult : NSObject
69
71@property (nonatomic, readonly) TNKRerouteReason rerouteReason;
72
74@property (nonatomic, readonly, nullable) NSError *error;
75
77@property (nonatomic, readonly, nullable) TNKWalkRoute *searchRoute;
78
79@end
80
81NS_ASSUME_NONNULL_END
TNKRerouteReason
enum _TNKRerouteReason TNKRerouteReason
重新算路类型.
_TNKRerouteReason
_TNKRerouteReason
重新算路类型.
Definition: TNKRerouteCommon.h:21
TNKRerouteReasonOffRouteParamUpdate
@ TNKRerouteReasonOffRouteParamUpdate
偏航更新参数重算（自定义点串）
Definition: TNKRerouteCommon.h:30
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:37
TNKDriveRerouteResult::searchRoute
TNKDriveRoute * searchRoute
重算新路线数据，重算成功时不为空。
Definition: TNKRerouteCommon.h:45
TNKDriveRerouteResult::rerouteReason
TNKRerouteReason rerouteReason
重算路的原因
Definition: TNKRerouteCommon.h:39
TNKDriveRerouteResult::error
NSError * error
重算失败的错误信息，重算失败时不为空。
Definition: TNKRerouteCommon.h:42
TNKDriveRoute
算路的路线数据类
Definition: TNKDriveCommonObj.h:426
TNKRideRerouteResult
骑行重新算路结果
Definition: TNKRerouteCommon.h:53
TNKRideRoute
算路的路线数据类
Definition: TNKRideCommonObj.h:18
TNKWalkRerouteResult
步行重新算路结果
Definition: TNKRerouteCommon.h:69
TNKWalkRoute
算路的路线数据类
Definition: TNKWalkCommonObj.h:18