forked from huobazi/DSBBM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBMKRouteSearch.h
75 lines (60 loc) · 2.27 KB
/
BMKRouteSearch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* BMKRouteSearch.h
* BMapKit
*
* Copyright 2011 Baidu Inc. All rights reserved.
*
*/
#import "BMKRouteSearchOption.h"
@protocol BMKRouteSearchDelegate;
///route搜索服务
@interface BMKRouteSearch : NSObject
/// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放
@property (nonatomic, retain) id<BMKRouteSearchDelegate> delegate;
/**
*公交路线检索
*异步函数,返回结果在BMKRouteSearchDelegate的onGetTransitRouteResult通知
*@param transitRoutePlanOption 公交换乘信息类
*@return 成功返回YES,否则返回NO
*/
- (BOOL)transitSearch:(BMKTransitRoutePlanOption*)transitRoutePlanOption;
/**
*驾乘路线检索
*异步函数,返回结果在BMKRouteSearchDelegate的onGetDrivingRouteResult通知
*@param drivingRoutePlanOption 驾车检索信息类
*@return 成功返回YES,否则返回NO
*/
- (BOOL)drivingSearch:(BMKDrivingRoutePlanOption*)drivingRoutePlanOption;
/**
*步行路线检索
*异步函数,返回结果在BMKRouteSearchDelegate的onGetWalkingRouteResult通知
*@param walkingRoutePlanOption 步行检索信息类
*@return 成功返回YES,否则返回NO
*/
- (BOOL)walkingSearch:(BMKWalkingRoutePlanOption*)walkingRoutePlanOption;
@end
///路线搜索delegate,用于获取路线搜索结果
@protocol BMKRouteSearchDelegate<NSObject>
@optional
/**
*返回公交搜索结果
*@param searcher 搜索对象
*@param result 搜索结果,类型为BMKTransitRouteResult
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetTransitRouteResult:(BMKRouteSearch*)searcher result:(BMKTransitRouteResult*)result errorCode:(BMKSearchErrorCode)error;
/**
*返回驾乘搜索结果
*@param searcher 搜索对象
*@param result 搜索结果,类型为BMKDrivingRouteResult
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetDrivingRouteResult:(BMKRouteSearch*)searcher result:(BMKDrivingRouteResult*)result errorCode:(BMKSearchErrorCode)error;
/**
*返回步行搜索结果
*@param searcher 搜索对象
*@param result 搜索结果,类型为BMKWalkingRouteResult
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetWalkingRouteResult:(BMKRouteSearch*)searcher result:(BMKWalkingRouteResult*)result errorCode:(BMKSearchErrorCode)error;
@end