TencentNavKit

TNKTrafficJamInfo.h
Go to the documentation of this file.
1//
2// TNKTrafficJamInfo.h
3// TencentNavKit
4//
5// Created by mol on 2023/3/14.
6// Copyright © 2023 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <TencentNavKit/TNKDriveCommonObj.h>
11#import <TencentNavKit/TNKRouteTrafficItem.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
16@interface TNKTrafficJamInfo : NSObject
18@property (nonatomic, readonly) int jamDuration;
20@property (nonatomic, readonly) int jamDistance;
22@property (nonatomic, readonly) BOOL inJamArea;
24@property (nonatomic, readonly) TNKRouteTrafficDataStatus trafficStatus;
25
26@property (nonatomic, readonly) NSArray<TNKRoutePoint *> * routePoints;
27
28@end
29
30NS_ASSUME_NONNULL_END
TNKRouteTrafficDataStatus
enum _TNKRouteTrafficDataStatus TNKRouteTrafficDataStatus
交通状态
TNKTrafficJamInfo
前方拥堵信息
Definition: TNKTrafficJamInfo.h:17
TNKTrafficJamInfo::trafficStatus
TNKRouteTrafficDataStatus trafficStatus
拥堵状态
Definition: TNKTrafficJamInfo.h:24
TNKTrafficJamInfo::inJamArea
BOOL inJamArea
是否在拥堵路段内
Definition: TNKTrafficJamInfo.h:22
TNKTrafficJamInfo::routePoints
NSArray< TNKRoutePoint * > * routePoints
Definition: TNKTrafficJamInfo.h:26
TNKTrafficJamInfo::jamDuration
int jamDuration
拥堵时间，单位秒
Definition: TNKTrafficJamInfo.h:18
TNKTrafficJamInfo::jamDistance
int jamDistance
拥堵长度，单位米
Definition: TNKTrafficJamInfo.h:20