Map Doc  1.0
iOS-引擎SDK-开放平台
MBRouteCollection.h
浏览该文件的文档.
1 //
2 // MBRouteCollection.h
3 // iNaviCore
4 //
5 // Created by fanwei on 3/8/13.
6 // Copyright (c) 2013 Mapbar. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 @class MBRouteBase, MBRoutePlan;
12 
13 typedef NS_OPTIONS(NSUInteger, MBOnlineRouteCode) {
14  MBOnlineRouteCode_fmtError = 0, // JSON format error
15  MBOnlineRouteCode_verError = 1, // JSON format version error
16 
17  MBOnlineRouteCode_ok = 100, // No error
18  MBOnlineRouteCode_fail = 101, //
19  MBOnlineRouteCode_oriDestFail = 102, // Fail to set start point or destination
20  MBOnlineRouteCode_sysError = 103, // System error
21  MBOnlineRouteCode_noNeedToReroute = 104, // No need to reroute (no nearby road found)
22  MBOnlineRouteCode_unsupportedRequestVersion = 105, // The server does not support current request's version.
23  MBOnlineRouteCode_max = 0xffffffff
24 };
25 
29 @interface MBRouteCollection : NSObject <NSCopying, NSMutableCopying>
30 - (instancetype)initWithHandle:(void *)handle;
31 - (instancetype)initWithJsonStr:(NSString *)jsonStr withPlan:(MBRoutePlan *)plan andCode:(MBOnlineRouteCode)code;
32 
36 @property (nonatomic, readonly) NSArray *routeBases;
37 
41 @property (nonatomic, readonly) NSInteger num;
42 
46 - (void)removeAll __attribute__((deprecated("准备废弃此方法")));
47 
55 - (void)addRoute:(MBRouteBase *)route;
56 
60 - (void)exchangeRoutesWithIndex:(NSUInteger)idx1 anotherIndex:(NSUInteger)idx2;
61 @end
Definition: MBRoutePlan.h:17
Definition: MBRouteCollection.h:29
(deprecated("准备废弃此方法" __attribute__()
NSInteger num
Definition: MBRouteCollection.h:41
NSArray * routeBases
Definition: MBRouteCollection.h:36
Definition: MBRouteBase.h:62
typedef NS_OPTIONS(NSUInteger, MBOnlineRouteCode)
Definition: MBRouteCollection.h:13