TencentNavKit

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