百度地图SDK for iOS v4.1.1 类参考
BMKCloudSearch.h
1 /*
2  * BMKCloudSearch.h
3  * BMapKit
4  *
5  * Copyright 2013 Baidu Inc. All rights reserved.
6  *
7  */
8 
9 #import <Foundation/Foundation.h>
10 #import "BMKCloudSearchInfo.h"
11 #import "BMKCloudPOIList.h"
12 
13 @protocol BMKCloudSearchDelegate;
15 typedef enum
16 {
17  BMK_NONE_SEARCH = 0,
18  BMK_CLOUD_LOCAL_SEARCH = 1,
19  BMK_CLOUD_NEARBY_SEARCH = 2,
20  BMK_CLOUD_BOUND_SEARCH = 3,
21  BMK_CLOUD_DETAIL_SEARCH = 4,
22  BMK_CLOUD_RGC_SEARCH = 5
23 }BMKCloudSearchType;
24 
25 //云检索结果状态码
26 typedef enum{
27  BMK_CLOUD_PERMISSION_UNFINISHED = -4,
28  BMK_CLOUD_NETWOKR_ERROR = -3,
29  BMK_CLOUD_NETWOKR_TIMEOUT = -2,
30  BMK_CLOUD_RESULT_NOT_FOUND = -1,
31  BMK_CLOUD_NO_ERROR = 0,
32  BMK_CLOUD_SERVER_ERROR = 1,
33  BMK_CLOUD_PARAM_ERROR = 2,
34  /*
35  *更多云检索状态码请参考:
36  *http://developer.baidu.com/map/index.php?title=lbscloud/api/appendix
37  */
38 }BMKCloudErrorCode;
39 
41 @interface BMKCloudSearch : NSObject
43 @property (nonatomic, weak) id<BMKCloudSearchDelegate> delegate;
50 - (BOOL)localSearchWithSearchInfo:(BMKCloudLocalSearchInfo *)searchInfo;
57 - (BOOL)nearbySearchWithSearchInfo:(BMKCloudNearbySearchInfo *)searchInfo;
64 - (BOOL)boundSearchWithSearchInfo:(BMKCloudBoundSearchInfo *)searchInfo;
65 
72 - (BOOL)detailSearchWithSearchInfo:(BMKCloudDetailSearchInfo *)searchInfo;
73 
80 - (BOOL)cloudReverseGeoCodeSearch:(BMKCloudReverseGeoCodeSearchInfo*)searchInfo;
81 
82 @end
83 
85 @protocol BMKCloudSearchDelegate<NSObject>
86 @optional
93 - (void)onGetCloudPoiResult:(NSArray*)poiResultList searchType:(int)type errorCode:(int)error;
94 
101 - (void)onGetCloudPoiDetailResult:(BMKCloudPOIInfo*)poiDetailResult searchType:(int)type errorCode:(int)error;
102 
109 - (void)onGetCloudReverseGeoCodeResult:(BMKCloudReverseGeoCodeResult*)cloudRGCResult searchType:(BMKCloudSearchType) type errorCode:(NSInteger) errorCode;
110 
111 @end
云检索服务
Definition: BMKCloudSearch.h:41
云RGC检索参数信息类
Definition: BMKCloudSearchInfo.h:105
云检索结果信息类
Definition: BMKCloudPOIList.h:34
云RGC检索结果类
Definition: BMKCloudPOIList.h:110
云检索delegate,用于获取云检索结果
Definition: BMKCloudSearch.h:85
本地云检索参数信息类
Definition: BMKCloudSearchInfo.h:70
矩形云检索参数信息类
Definition: BMKCloudSearchInfo.h:89
id< BMKCloudSearchDelegate > delegate
检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放
Definition: BMKCloudSearch.h:43
详情云检索参数信息类
Definition: BMKCloudSearchInfo.h:97
周边云检索参数信息类
Definition: BMKCloudSearchInfo.h:78