Map Doc  1.0
iOS-引擎SDK-开放平台
MBBusQuery.h
浏览该文件的文档.
1 //
2 // MBBusQuery.h
3 // iNaviCore
4 //
5 // Created by fanyl on 14-5-27.
6 // Copyright (c) 2014年 Mapbar. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 #import "MBWmrBaseTypes.h"// For MBWmrObjId type
12 #import "MBBusBaseType.h"
13 #import "MBNaviCoreBase.h"
14 
18 @protocol MBBusQueryDelegate <NSObject>
19  @optional
23 - (void)busQueryStart;
24 
28 - (void)busQueryFailed;
29 
33 - (void)busQueryCanceled;
34 
38 - (void)busQueryNoresult;
39 
43 - (void)busQueryCompleted;
44 
48 - (void)busQueryGetCurrentCityFailed;
49 @end
50 
57 @interface MBBusQuery : NSObject
61 @property (nonatomic, assign) MBBusQueryMode mode;
62 
66 @property (nonatomic, weak) id<MBBusQueryDelegate> delegate;
67 
71 @property (nonatomic, strong) MBBusQueryParams *params;
72 
76 @property (nonatomic, copy) NSString *hostURL;
77 
81 @property (nonatomic, assign) MBWmrObjId wmrId;
82 
87 + (instancetype)sharedBusQuery;
88 
93 - (void)cleanup;
94 
103 - (void)queryBusLinesByKeyword:(NSString *)keyword withOption:(MBBusQueryOption)options suggest:(BOOL)suggestOnly;
104 
111 - (void)queryBusLinesByPosition:(MBPoint)poi withOption:(MBBusQueryOption)options;
112 
119 - (void)queryBusLinesByStation:(NSString *)stationName withOption:(MBBusQueryOption)options;
120 
127 - (void)queryBusLineDetail:(NSString *)busId;
128 
136 - (void)queryStationsByKeyword:(NSString *)keyword withOption:(MBBusQueryOption)options suggest:(BOOL)suggestOnly;
137 
143 - (void)queryStationsByPosition:(MBPoint)pos withOption:(MBBusQueryOption)options;
144 
150 - (void)querySubwayEntrances:(NSString *)stationName;
151 
158 - (void)queryBusRoutes:(MBBusRoutePlan *)routePlan;
159 
165 - (void)queryBusRoutesWalkOnly:(MBBusRoutePlan *)routePlan;
166 
171 - (void)cancel;
172 
179 - (NSInteger)getResultNumber;
180 
190 - (MBBusLine *)getResultAsBusLine:(NSInteger)index;
191 
200 - (MBBusStation *)getResultAsBusStation:(NSInteger)index;
201 
210 - (MBBusRoute *)getResultAsBusRoute:(NSInteger)index;
211 
218 - (MBSubwayEntrance *)getResultAsSubwayEntrance:(NSInteger)index;
219 @end
220 
221 #import "MBObject.h"
229 + (instancetype)defaultParams;
230 
235 @property (nonatomic, assign) NSInteger desiredMemorySize;
236 
240 @property (nonatomic, assign) NSInteger maxResultNumber;
241 
245 @property (nonatomic, assign) NSInteger searchRange;
246 @end
instancetype defaultParams()
NSInteger maxResultNumber
Definition: MBBusQuery.h:240
Definition: MBSubwayEntrance.h:14
MBWmrObjId wmrId
Definition: MBBusQuery.h:81
MBBusQueryMode mode
Definition: MBBusQuery.h:61
Definition: MBBusStation.h:15
MBBusQueryMode
Definition: MBBusBaseType.h:15
id< MBBusQueryDelegate > delegate
Definition: MBBusQuery.h:66
Definition: MBBusQuery.h:225
unsigned int MBWmrObjId
Definition: MBWmrBaseTypes.h:12
NSString * hostURL
Definition: MBBusQuery.h:76
MBBusQueryParams * params
Definition: MBBusQuery.h:71
Definition: MBBusQuery.h:57
Definition: MBObject.h:16
Definition: MBBusRoute.h:14
NSInteger searchRange
Definition: MBBusQuery.h:245
void cleanup()
Definition: MBBusLine.h:15
Definition: MBBusRoutePlan.h:15
instancetype sharedBusQuery()
NSInteger getResultNumber()
NSInteger desiredMemorySize
Definition: MBBusQuery.h:235
Definition: MBNaviCoreBase.h:31