TencentNavKit

TNKWalkCommonObj.h
Go to the documentation of this file.
1//
2// TNKWalkCommonObj.h
3// TencentNavKit
4//
5// Created by mol on 2023/1/9.
6// Copyright © 2023 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKCommonObj.h>
10#import <TencentNavKit/TNKSegmentItem.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
17@interface TNKWalkRoute : NSObject
18
22@property (nonatomic, readonly) NSString *recommendReason;
23
27@property (nonatomic, readonly) NSArray<TNKCoordinatePoint *> *routePoints;
28
32@property (nonatomic, readonly) NSString *routeID;
33
37@property (nonatomic, readonly) int totalDistance;
38
42@property (nonatomic, readonly) int totalTime;
43
47@property (nonatomic, readonly) int trafficLightCount;
48
52@property (nonatomic, readonly) TNKSearchNavPoint *origin;
53
57@property (nonatomic, readonly) TNKSearchNavPoint *destination;
58
62@property (nonatomic, readonly) NSArray <TNKSegmentItem *> *segmentItems;
63
67@property (nonatomic, readonly, nullable) NSArray<TNKRouteMilestone *> *milestones;
68
69@end
70
71
75@interface TNKWalkRouteSearchResult : NSObject
76
80@property (nonatomic, readonly) NSArray<TNKWalkRoute *> *routes;
81
82@end
83
87@interface TNKWalkNavRoute : NSObject
88
89- (instancetype)init NS_UNAVAILABLE;
90
92- (instancetype)initWithSearchRoute:(TNKWalkRoute *)searchRoute;
93
97@property (nonatomic, readonly) TNKWalkRoute *searchRoute;
98
102@property (nonatomic, readonly) int remainingDistance;
103
107@property (nonatomic, readonly) int remainingTime;
108
109@end
110
111NS_ASSUME_NONNULL_END
TNKWalkRoute
算路的路线数据类
Definition: TNKWalkCommonObj.h:18
TNKWalkRoute::routeID
NSString * routeID
路线ID
Definition: TNKWalkCommonObj.h:32
TNKWalkRoute::origin
TNKSearchNavPoint * origin
导航起点
Definition: TNKWalkCommonObj.h:52
TNKWalkRoute::recommendReason
NSString * recommendReason
路线标签。比如：时间段、距离短等。
Definition: TNKWalkCommonObj.h:22
TNKWalkRoute::milestones
NSArray< TNKRouteMilestone * > * milestones
里程碑
Definition: TNKWalkCommonObj.h:67
TNKWalkRoute::totalTime
int totalTime
总预计时间. 单位，分钟
Definition: TNKWalkCommonObj.h:42
TNKWalkRoute::routePoints
NSArray< TNKCoordinatePoint * > * routePoints
组成路线形状的坐标点数组
Definition: TNKWalkCommonObj.h:27
TNKWalkRoute::totalDistance
int totalDistance
总距离. 单位，米
Definition: TNKWalkCommonObj.h:37
TNKWalkRoute::segmentItems
NSArray< TNKSegmentItem * > * segmentItems
路线规划时的路线状态数据.
Definition: TNKWalkCommonObj.h:62
TNKWalkRoute::trafficLightCount
int trafficLightCount
路线红绿灯个数
Definition: TNKWalkCommonObj.h:47
TNKWalkRoute::destination
TNKSearchNavPoint * destination
导航终点
Definition: TNKWalkCommonObj.h:57
TNKWalkRouteSearchResult
步行算路返回数据类
Definition: TNKWalkCommonObj.h:76