高德地图SDK(导航) V11.2.000
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
18@interface AMapNaviRouteGuideSegment : NSObject<NSCopying>
19
22@property (nonatomic, assign) AMapNaviIconType iconType;
23
26@property (nonatomic, strong, nullable) NSString *detailedDescription;
27
30@property (nonatomic, assign) BOOL isArriveWayPoint;
31
32@end
33
34#pragma mark - AMapNaviRouteGuideGroup
35
38@interface AMapNaviRouteGuideGroup : NSObject<NSCopying>
39
42@property (nonatomic, strong, nullable) NSString *groupName;
43
46@property (nonatomic, assign) NSInteger distance;
47
50@property (nonatomic, assign) AMapNaviIconType iconType;
51
54@property (nonatomic, assign) NSInteger time;
55
58@property (nonatomic, strong) AMapNaviPoint *coordinate;
59
62@property (nonatomic, strong) NSArray <AMapNaviRouteGuideSegment *> *guideSegments;
63
66@property (nonatomic, assign) NSInteger trafficLightCount;
67
68@end
69
70
71// AMapNaviLink --组成--> AMapNaviSegment --组成--> AMapNaviRoute
72
73#pragma mark - AMapNaviLink
74
77@interface AMapNaviLink : NSObject<NSCopying>
78
81@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
82
85@property (nonatomic, assign) NSInteger length;
86
89@property (nonatomic, assign) NSInteger time;
90
93@property (nonatomic, strong, nullable) NSString *roadName;
94
97@property (nonatomic, assign) AMapNaviRoadClass roadClass;
98
101@property (nonatomic, assign) AMapNaviFormWay formWay;
102
105@property (nonatomic, assign) BOOL isHadTrafficLights;
106
109@property (nonatomic, assign) AMapNaviRouteStatus trafficStatus;
110
111/*
112 获取带有深绿路况新的表达方式的交通状态,(获取交通状态, 当前Link无精细数据时有效)
113 Obtain traffic status with a new expression of dark green traffic condition, (Obtain traffic status, effective when the current Link has no detailed data)
114 畅通状态: 100--200; 而不在 [110,140)深绿、 [160,190)绿内,则路况状态默认为 “畅通”(绿色)
115 Unblocked status: 100--200; if not within [110,140) dark green or [160,190) green, the traffic status defaults to "unblocked" (green)
116 缓行状态: 200--300; 而不在 [210,290)内, 则路况状态默认为 “缓行”(黄色)
117 Slow traffic condition: 200--300; if not within [210, 290), the traffic condition defaults to "Slow" (yellow)
118 拥堵状态: 300--400; 而不在 [310,340)拥堵、 [360,390)极度拥堵内,则路况状态默认为“拥堵”(红色)
119 Congestion status: 300--400; if not within [310, 340) congestion or [360, 390) severe congestion, the traffic status defaults to 'congested' (red)
120 无交通流: 900--999; 路况全部为“无交通流”
121 No traffic flow: 900--999; All traffic conditions are "No traffic flow"
122 在以上区间之外的,包括0 以及所有其他无效值,均按照“未知”处理。
123 Outside the above range, including 0 and all other invalid values, are treated as "Unknown"
124 特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.6.0
125 Special Note: The current interface is a paid service. If you wish to apply for a trial or official use, please submit a business cooperation ticket through the ticketing system for communication at https://lbs.amap.com/ since 9.6.0
126 */
127@property (nonatomic, assign) NSInteger trafficFineStatus;
128
131@property (nonatomic, assign) AMapNaviLinkType linkType;
132
135@property (nonatomic, assign) AMapNaviOwnershipType ownershipType;
136@end
137
138#pragma mark - AMapNaviSegment
139
142@interface AMapNaviSegment : NSObject<NSCopying>
143
146@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
147
150@property (nonatomic, strong) NSArray<AMapNaviLink *> *links;
151
154@property (nonatomic, assign) NSInteger length;
155
158@property (nonatomic, assign) NSInteger time;
159
162@property (nonatomic, assign) AMapNaviIconType iconType;
163
166@property (nonatomic, assign) NSInteger chargeLength;
167
170@property (nonatomic, assign) NSInteger tollCost;
171
174@property (nonatomic, assign) NSInteger trafficLightCount;
175
178@property (nonatomic, assign) BOOL isArriveWayPoint;
179
180@end
181
182#pragma mark - AMapNaviRoute
183
186@interface AMapNaviRoute : NSObject<NSCopying>
187
190@property (nonatomic, assign) NSInteger routeLength;
191
194@property (nonatomic, assign) NSInteger routeTime;
195
198@property (nonatomic, strong) AMapNaviPointBounds *routeBounds;
199
202@property (nonatomic, strong) AMapNaviPoint *routeCenterPoint;
203
206@property (nonatomic, strong) NSArray<AMapNaviPoint *> *routeCoordinates;
207
210@property (nonatomic, strong) AMapNaviPoint *routeStartPoint;
211
214@property (nonatomic, strong) AMapNaviPoint *routeEndPoint;
215
217@property (nonatomic, strong) AMapNaviPOIInfo *startPoi;
218
220@property (nonatomic, strong) AMapNaviPOIInfo *endPoi;
221
223@property (nonatomic, strong) NSArray<AMapNaviPOIInfo *> *viaPois;
224
227@property (nonatomic, strong) NSArray<AMapNaviSegment *> *routeSegments;
228
231@property (nonatomic, assign) NSInteger routeSegmentCount;
232
235@property (nonatomic, strong, nullable) NSArray<AMapNaviCameraInfo *> *routeCameras;
236
239@property (nonatomic, assign) NSInteger routeTrafficLightCount;
240
243@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteLabel *> *routeLabels;
244
247@property (nonatomic, assign) NSInteger routeTollCost;
248
251@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *wayPoints __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
252
255@property (nonatomic, strong, nullable) NSIndexPath *wayPointsIndexes __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
256
259@property (nonatomic, strong, nullable) NSArray<NSNumber *> *wayPointCoordIndexes __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
260
263@property (nonatomic, strong, nullable) AMapNaviRestrictionInfo *restrictionInfo;
264
267@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficStatus *> *routeTrafficStatuses;
268
271@property (nonatomic, strong, nullable) NSArray<AMapNaviGroupSegment *> *routeGroupSegments;
272
275@property (nonatomic, strong, nullable) NSArray<NSNumber *> *routeCityAdcodes;
276
279@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *routeTrafficLights;
280
283@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteForbiddenInfo *> *forbiddenInfo;
284
287@property (nonatomic, strong, nullable) NSArray<AMapNaviRoadFacilityInfo *> *roadFacilityInfo;
288
291@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteIconPoint *> *routeIconPoints;
292
295@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficIncidentInfo *> *trafficIncidentInfo;
296
299@property (nonatomic, strong, nullable) NSArray <AMapNaviRouteWayPointInfo *> *wayPointsInfo;
300
303@property (nonatomic, strong, nullable) NSArray <NSNumber *> *drawStyleIndexes;
304
307@property (nonatomic, assign) NSUInteger routeUID;
308
311@property (nonatomic, strong) NSArray <AMapNaviRouteGuideGroup *> *guideGroups;
312
315@property (nonatomic, strong, readonly, nullable) AMapNaviPoint *searchStartPoint;
316
319@property (nonatomic, strong, readonly, nullable) AMapNaviPoint *searchEndPoint;
320
321@end
322
325@interface AMapNaviCalculateRouteResult : NSObject<NSCopying>
326
329@property (nonatomic, assign) NSInteger routeRequestId;
330
331@end
332
335@interface AMapNaviRouteGroup : NSObject<NSCopying>
336
337- (nullable instancetype)init NS_UNAVAILABLE;
338
341@property (nonatomic, readonly) NSInteger naviRouteID;
342
345@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
346
349@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
350
353@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
354
357@property (nonatomic, readonly, nullable) AMapNaviCalculateRouteResult *calculateRouteResult;
358
367- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
368
369@end
370
371NS_ASSUME_NONNULL_END
AMapNaviOwnershipType
Definition AMapNaviCommonObj.h:500
AMapNaviIconType
Definition AMapNaviCommonObj.h:138
AMapNaviLinkType
Definition AMapNaviCommonObj.h:440
AMapNaviRouteStatus
Definition AMapNaviCommonObj.h:290
AMapNaviRoadClass
Definition AMapNaviCommonObj.h:222
AMapNaviFormWay
Definition AMapNaviCommonObj.h:239
Definition AMapNaviRoute.h:325
Definition AMapNaviCommonObj.h:1326
Definition AMapNaviCommonObj.h:650
Definition AMapNaviCommonObj.h:614
Definition AMapNaviCommonObj.h:996
Definition AMapNaviRoute.h:335
Definition AMapNaviRoute.h:38
Definition AMapNaviRoute.h:18
BOOL isArriveWayPoint
Definition AMapNaviRoute.h:30
NSString * detailedDescription
Definition AMapNaviRoute.h:26
AMapNaviIconType iconType
Definition AMapNaviRoute.h:22
Definition AMapNaviRoute.h:186
Definition AMapNaviRoute.h:142
© 2017 高德信息技术有限公司 版权所有,保留所有权利。