高德地图SDK(导航)  V11.1.000
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 
12 NS_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 
218 @property (nonatomic, strong) NSArray<AMapNaviSegment *> *routeSegments;
219 
222 @property (nonatomic, assign) NSInteger routeSegmentCount;
223 
226 @property (nonatomic, strong, nullable) NSArray<AMapNaviCameraInfo *> *routeCameras;
227 
230 @property (nonatomic, assign) NSInteger routeTrafficLightCount;
231 
234 @property (nonatomic, strong, nullable) NSArray<AMapNaviRouteLabel *> *routeLabels;
235 
238 @property (nonatomic, assign) NSInteger routeTollCost;
239 
242 @property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *wayPoints __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
243 
246 @property (nonatomic, strong, nullable) NSIndexPath *wayPointsIndexes __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
247 
250 @property (nonatomic, strong, nullable) NSArray<NSNumber *> *wayPointCoordIndexes __attribute__((deprecated("This field is deprecated, use wayPointsInfo instead, since 6.7.0")));
251 
254 @property (nonatomic, strong, nullable) AMapNaviRestrictionInfo *restrictionInfo;
255 
258 @property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficStatus *> *routeTrafficStatuses;
259 
262 @property (nonatomic, strong, nullable) NSArray<AMapNaviGroupSegment *> *routeGroupSegments;
263 
266 @property (nonatomic, strong, nullable) NSArray<NSNumber *> *routeCityAdcodes;
267 
270 @property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *routeTrafficLights;
271 
274 @property (nonatomic, strong, nullable) NSArray<AMapNaviRouteForbiddenInfo *> *forbiddenInfo;
275 
278 @property (nonatomic, strong, nullable) NSArray<AMapNaviRoadFacilityInfo *> *roadFacilityInfo;
279 
282 @property (nonatomic, strong, nullable) NSArray<AMapNaviRouteIconPoint *> *routeIconPoints;
283 
286 @property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficIncidentInfo *> *trafficIncidentInfo;
287 
290 @property (nonatomic, strong, nullable) NSArray <AMapNaviRouteWayPointInfo *> *wayPointsInfo;
291 
294 @property (nonatomic, strong, nullable) NSArray <NSNumber *> *drawStyleIndexes;
295 
298 @property (nonatomic, assign) NSUInteger routeUID;
299 
302 @property (nonatomic, strong) NSArray <AMapNaviRouteGuideGroup *> *guideGroups;
303 
306 @property (nonatomic, strong, readonly, nullable) AMapNaviPoint *searchStartPoint;
307 
310 @property (nonatomic, strong, readonly, nullable) AMapNaviPoint *searchEndPoint;
311 
312 @end
313 
316 @interface AMapNaviCalculateRouteResult : NSObject<NSCopying>
317 
320 @property (nonatomic, assign) NSInteger routeRequestId;
321 
322 @end
323 
326 @interface AMapNaviRouteGroup : NSObject<NSCopying>
327 
328 - (nullable instancetype)init NS_UNAVAILABLE;
329 
332 @property (nonatomic, readonly) NSInteger naviRouteID;
333 
336 @property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
337 
340 @property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
341 
344 @property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
345 
348 @property (nonatomic, readonly, nullable) AMapNaviCalculateRouteResult *calculateRouteResult;
349 
358 - (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
359 
360 @end
361 
362 NS_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:316
Definition: AMapNaviCommonObj.h:629
Definition: AMapNaviCommonObj.h:593
Definition: AMapNaviCommonObj.h:975
Definition: AMapNaviRoute.h:326
AMapNaviRoute * naviRoute
Definition: AMapNaviRoute.h:336
AMapNaviCalculateRouteResult * calculateRouteResult
Definition: AMapNaviRoute.h:348
NSInteger naviRouteID
Definition: AMapNaviRoute.h:332
NSArray< NSNumber * > * naviRouteIDs
Definition: AMapNaviRoute.h:340
nullable instancetype NS_UNAVAILABLE()
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes
Definition: AMapNaviRoute.h:344
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 高德信息技术有限公司 版权所有,保留所有权利。