高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
AMapNaviRoute.h
Go to the documentation of this file.
1//
2// AMapNaviRoute.h
3// AMapNaviKit
4//
5// Created by AutoNavi on 14-7-11.
6// Copyright (c) 2014年 Amap. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "AMapNaviCommonObj.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
14#pragma mark - AMapNaviRouteGuideSegment
15
17@interface AMapNaviRouteGuideSegment : NSObject<NSCopying>
18
20@property (nonatomic, assign) AMapNaviIconType iconType;
21
23@property (nonatomic, strong, nullable) NSString *detailedDescription;
24
26@property (nonatomic, assign) BOOL isArriveWayPoint;
27
28@end
29
30#pragma mark - AMapNaviRouteGuideGroup
31
33@interface AMapNaviRouteGuideGroup : NSObject<NSCopying>
34
36@property (nonatomic, strong, nullable) NSString *groupName;
37
39@property (nonatomic, assign) NSInteger distance;
40
42@property (nonatomic, assign) AMapNaviIconType iconType;
43
45@property (nonatomic, assign) NSInteger time;
46
48@property (nonatomic, strong) AMapNaviPoint *coordinate;
49
51@property (nonatomic, strong) NSArray <AMapNaviRouteGuideSegment *> *guideSegments;
52
54@property (nonatomic, assign) NSInteger trafficLightCount;
55
56@end
57
58
59// AMapNaviLink --组成--> AMapNaviSegment --组成--> AMapNaviRoute
60
61#pragma mark - AMapNaviLink
62
64@interface AMapNaviLink : NSObject<NSCopying>
65
67@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
68
70@property (nonatomic, assign) NSInteger length;
71
73@property (nonatomic, assign) NSInteger time;
74
76@property (nonatomic, strong, nullable) NSString *roadName;
77
79@property (nonatomic, assign) AMapNaviRoadClass roadClass;
80
82@property (nonatomic, assign) AMapNaviFormWay formWay;
83
85@property (nonatomic, assign) BOOL isHadTrafficLights;
86
88@property (nonatomic, assign) AMapNaviRouteStatus trafficStatus;
89
90/*
91 获取带有深绿路况新的表达方式的交通状态,(获取交通状态, 当前Link无精细数据时有效)
92 畅通状态: 100--200; 而不在 [110,140)深绿、 [160,190)绿内,则路况状态默认为 “畅通”(绿色)
93 缓行状态: 200--300; 而不在 [210,290)内, 则路况状态默认为 “缓行”(黄色)
94 拥堵状态: 300--400; 而不在 [310,340)拥堵、 [360,390)极度拥堵内,则路况状态默认为“拥堵”(红色)
95 无交通流: 900--999; 路况全部为“无交通流”
96 在以上区间之外的,包括0 以及所有其他无效值,均按照“未知”处理。
97 特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.6.0
98 */
99@property (nonatomic, assign) NSInteger trafficFineStatus;
100
102@property (nonatomic, assign) AMapNaviLinkType linkType;
103
105@property (nonatomic, assign) AMapNaviOwnershipType ownershipType;
106@end
107
108#pragma mark - AMapNaviSegment
109
111@interface AMapNaviSegment : NSObject<NSCopying>
112
114@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
115
117@property (nonatomic, strong) NSArray<AMapNaviLink *> *links;
118
120@property (nonatomic, assign) NSInteger length;
121
123@property (nonatomic, assign) NSInteger time;
124
126@property (nonatomic, assign) AMapNaviIconType iconType;
127
129@property (nonatomic, assign) NSInteger chargeLength;
130
132@property (nonatomic, assign) NSInteger tollCost;
133
135@property (nonatomic, assign) NSInteger trafficLightCount;
136
138@property (nonatomic, assign) BOOL isArriveWayPoint;
139
140@end
141
142#pragma mark - AMapNaviRoute
143
145@interface AMapNaviRoute : NSObject<NSCopying>
146
148@property (nonatomic, assign) NSInteger routeLength;
149
151@property (nonatomic, assign) NSInteger routeTime;
152
154@property (nonatomic, strong) AMapNaviPointBounds *routeBounds;
155
157@property (nonatomic, strong) AMapNaviPoint *routeCenterPoint;
158
160@property (nonatomic, strong) NSArray<AMapNaviPoint *> *routeCoordinates;
161
163@property (nonatomic, strong) AMapNaviPoint *routeStartPoint;
164
166@property (nonatomic, strong) AMapNaviPoint *routeEndPoint;
167
169@property (nonatomic, strong) NSArray<AMapNaviSegment *> *routeSegments;
170
172@property (nonatomic, assign) NSInteger routeSegmentCount;
173
175@property (nonatomic, strong, nullable) NSArray<AMapNaviCameraInfo *> *routeCameras;
176
178@property (nonatomic, assign) NSInteger routeTrafficLightCount;
179
181@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteLabel *> *routeLabels;
182
184@property (nonatomic, assign) NSInteger routeTollCost;
185
187@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *wayPoints __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
188
190@property (nonatomic, strong, nullable) NSIndexPath *wayPointsIndexes __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
191
193@property (nonatomic, strong, nullable) NSArray<NSNumber *> *wayPointCoordIndexes __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
194
196@property (nonatomic, strong, nullable) AMapNaviRestrictionInfo *restrictionInfo;
197
199@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficStatus *> *routeTrafficStatuses;
200
202@property (nonatomic, strong, nullable) NSArray<AMapNaviGroupSegment *> *routeGroupSegments;
203
205@property (nonatomic, strong, nullable) NSArray<NSNumber *> *routeCityAdcodes;
206
208@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *routeTrafficLights;
209
211@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteForbiddenInfo *> *forbiddenInfo;
212
214@property (nonatomic, strong, nullable) NSArray<AMapNaviRoadFacilityInfo *> *roadFacilityInfo;
215
217@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteIconPoint *> *routeIconPoints;
218
220@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficIncidentInfo *> *trafficIncidentInfo;
221
223@property (nonatomic, strong, nullable) NSArray <AMapNaviRouteWayPointInfo *> *wayPointsInfo;
224
226@property (nonatomic, strong, nullable) NSArray <NSNumber *> *drawStyleIndexes;
227
229@property (nonatomic, assign) NSUInteger routeUID;
230
232@property (nonatomic, strong) NSArray <AMapNaviRouteGuideGroup *> *guideGroups;
233
234@end
235
237@interface AMapNaviRouteGroup : NSObject<NSCopying>
238
239- (nullable instancetype)init NS_UNAVAILABLE;
240
242@property (nonatomic, readonly) NSInteger naviRouteID;
243
245@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
246
248@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
249
251@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
252
258- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
259
260@end
261
262NS_ASSUME_NONNULL_END
AMapNaviOwnershipType
Definition AMapNaviCommonObj.h:450
AMapNaviIconType
Definition AMapNaviCommonObj.h:112
AMapNaviLinkType
Definition AMapNaviCommonObj.h:395
AMapNaviRouteStatus
Definition AMapNaviCommonObj.h:257
AMapNaviRoadClass
Definition AMapNaviCommonObj.h:193
AMapNaviFormWay
Definition AMapNaviCommonObj.h:209
Definition AMapNaviCommonObj.h:522
Definition AMapNaviCommonObj.h:495
路径限行信息 since 5.0.0
Definition AMapNaviCommonObj.h:814
导航路径信息集合. since 7.7.0
Definition AMapNaviRoute.h:237
路线详情的分组信息. since 7.5.0
Definition AMapNaviRoute.h:33
路线详情的分段信息. since 7.5.0
Definition AMapNaviRoute.h:17
BOOL isArriveWayPoint
分段是否到达途径点
Definition AMapNaviRoute.h:26
NSString * detailedDescription
分段的详细描述
Definition AMapNaviRoute.h:23
AMapNaviIconType iconType
分段的转向类型
Definition AMapNaviRoute.h:20
导航路径信息
Definition AMapNaviRoute.h:145
路径的分段信息
Definition AMapNaviRoute.h:111
© 2017 高德信息技术有限公司 版权所有,保留所有权利。