TencentNavKit

TNKSegmentItem.h
Go to the documentation of this file.
1//
2// TNKSegmentItem.h
3// TencentNavKit
4//
5// Created by mol on 2022/10/10.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
14 typedef enum _TNKRoadGrade
15{
16 TNKRoadGradeNull = -1,
17 TNKRoadGradeHighWay = 0,
18 TNKRoadGradeFastWay = 1,
19 TNKRoadGradeNationWay = 2,
20 TNKRoadGradeProvinceWay = 3,
21 TNKRoadGradeCountryWay = 4,
22 TNKRoadGradeTownWay = 6,
23 TNKRoadGradeOtherWay = 8,
24 TNKRoadGradeNineWay = 9,
25 TNKRoadGradeFerryWay = 10,
26 TNKRoadGradeFootWay = 11,
27 TNKRoadGradeBicycle = 13,
28} TNKRoadGrade;
29
31 typedef enum _TNKRoadKind
32{
33 TNKRoadKindNull = -1,
34 TNKRoadKindRoundabout = 0,
35 TNKRoadKindNormal = 1,
36 TNKRoadKindSeparate = 2,
37 TNKRoadKindJCT = 3,
38 TNKRoadKindInner = 4,
39 TNKRoadKindRamp = 5,
40 TNKRoadKindPA = 6,
41 TNKRoadKindSA = 7,
42 TNKRoadKindRightTurn = 8,
43 TNKRoadKindLeftTurn = 9,
44 TNKRoadKindUturn = 10,
45 TNKRoadKindIC = 11,
46 TNKRoadKindMainSideIC = 12,
47 TNKRoadKindTunnel = 13,
48 TNKRoadKindMainRoad = 14,
49 TNKRoadKindSideRoad = 15,
50 TNKRoadKindBridge = 16
51} TNKRoadKind;
52
53
54
58@interface TNKSegmentRoadName : NSObject
59
63@property (nonatomic, readonly) int from;
64
68@property (nonatomic, readonly) int to;
69
73@property (nonatomic, readonly) NSString *roadName;
74
78@property (nonatomic, readonly) TNKRoadGrade grade;
79
83@property (nonatomic, readonly) TNKRoadKind roadKind;
84
88@property (nonatomic, readonly) int length;
89
90@end
91
95@interface TNKSegmentItem : NSObject
96
100@property (nonatomic, readonly) int from;
101
105@property (nonatomic, readonly) int to;
106
110@property (nonatomic, readonly) int roadLength;
111
115@property (nonatomic, readonly) NSString *roadName;
116
120@property (nonatomic, readonly) NSArray<TNKSegmentRoadName *> *segRoadNames;
121
125@property (nonatomic, readonly) NSString *action;
126
130@property (nonatomic, readonly) NSString *direction;
131
135@property (nonatomic, readonly) int trafficLightCount;
136
140@property (nonatomic, readonly) int adcode;
141
142@end
143
144NS_ASSUME_NONNULL_END
TNKRoadGrade
NS_ASSUME_NONNULL_BEGIN enum _TNKRoadGrade TNKRoadGrade
道路等级
TNKRoadKind
enum _TNKRoadKind TNKRoadKind
道路属性
_TNKRoadGrade
_TNKRoadGrade
道路等级
Definition: TNKSegmentItem.h:15
TNKRoadGradeFootWay
@ TNKRoadGradeFootWay
Definition: TNKSegmentItem.h:26
TNKRoadGradeHighWay
@ TNKRoadGradeHighWay
Definition: TNKSegmentItem.h:17
TNKRoadGradeOtherWay
@ TNKRoadGradeOtherWay
Definition: TNKSegmentItem.h:23
TNKRoadGradeBicycle
@ TNKRoadGradeBicycle
Definition: TNKSegmentItem.h:27
TNKRoadGradeTownWay
@ TNKRoadGradeTownWay
Definition: TNKSegmentItem.h:22
TNKRoadGradeFastWay
@ TNKRoadGradeFastWay
Definition: TNKSegmentItem.h:18
TNKRoadGradeFerryWay
@ TNKRoadGradeFerryWay
Definition: TNKSegmentItem.h:25
TNKRoadGradeNull
@ TNKRoadGradeNull
Definition: TNKSegmentItem.h:16
TNKRoadGradeCountryWay
@ TNKRoadGradeCountryWay
Definition: TNKSegmentItem.h:21
TNKRoadGradeNineWay
@ TNKRoadGradeNineWay
Definition: TNKSegmentItem.h:24
TNKRoadGradeProvinceWay
@ TNKRoadGradeProvinceWay
Definition: TNKSegmentItem.h:20
TNKRoadGradeNationWay
@ TNKRoadGradeNationWay
Definition: TNKSegmentItem.h:19
_TNKRoadKind
_TNKRoadKind
道路属性
Definition: TNKSegmentItem.h:32
TNKRoadKindUturn
@ TNKRoadKindUturn
Definition: TNKSegmentItem.h:44
TNKRoadKindTunnel
@ TNKRoadKindTunnel
Definition: TNKSegmentItem.h:47
TNKRoadKindIC
@ TNKRoadKindIC
Definition: TNKSegmentItem.h:45
TNKRoadKindSideRoad
@ TNKRoadKindSideRoad
Definition: TNKSegmentItem.h:49
TNKRoadKindNull
@ TNKRoadKindNull
Definition: TNKSegmentItem.h:33
TNKRoadKindSeparate
@ TNKRoadKindSeparate
Definition: TNKSegmentItem.h:36
TNKRoadKindRightTurn
@ TNKRoadKindRightTurn
Definition: TNKSegmentItem.h:42
TNKRoadKindInner
@ TNKRoadKindInner
Definition: TNKSegmentItem.h:38
TNKRoadKindMainRoad
@ TNKRoadKindMainRoad
Definition: TNKSegmentItem.h:48
TNKRoadKindRoundabout
@ TNKRoadKindRoundabout
Definition: TNKSegmentItem.h:34
TNKRoadKindLeftTurn
@ TNKRoadKindLeftTurn
Definition: TNKSegmentItem.h:43
TNKRoadKindNormal
@ TNKRoadKindNormal
Definition: TNKSegmentItem.h:35
TNKRoadKindJCT
@ TNKRoadKindJCT
Definition: TNKSegmentItem.h:37
TNKRoadKindBridge
@ TNKRoadKindBridge
Definition: TNKSegmentItem.h:50
TNKRoadKindSA
@ TNKRoadKindSA
Definition: TNKSegmentItem.h:41
TNKRoadKindMainSideIC
@ TNKRoadKindMainSideIC
Definition: TNKSegmentItem.h:46
TNKRoadKindPA
@ TNKRoadKindPA
Definition: TNKSegmentItem.h:40
TNKRoadKindRamp
@ TNKRoadKindRamp
Definition: TNKSegmentItem.h:39
TNKSegmentItem
线段管理类
Definition: TNKSegmentItem.h:96
TNKSegmentRoadName
路名信息
Definition: TNKSegmentItem.h:59
TNKSegmentRoadName::roadKind
TNKRoadKind roadKind
道路属性
Definition: TNKSegmentItem.h:83
TNKSegmentRoadName::length
int length
长度.单位，米
Definition: TNKSegmentItem.h:88
TNKSegmentRoadName::from
int from
segment中点串序列起始index.
Definition: TNKSegmentItem.h:63
TNKSegmentRoadName::roadName
NSString * roadName
segment路名
Definition: TNKSegmentItem.h:73
TNKSegmentRoadName::grade
TNKRoadGrade grade
道路行政等级
Definition: TNKSegmentItem.h:78
TNKSegmentRoadName::to
int to
segment中点串序列终止index.
Definition: TNKSegmentItem.h:68