Files
ifish/Ifish/BMKMap3.3.0/BaiduMapAPI_Search.framework/Headers/BMKSuggestionSearch.h
T
2017-08-15 16:59:01 +08:00

66 lines
1.8 KiB
Objective-C

/*
* BMKSuggestionSearch.h
* BMapKit
*
* Copyright 2014 Baidu Inc. All rights reserved.
*
*/
#import "BMKSuggestionSearchOption.h"
#import <BaiduMapAPI_Base/BMKTypes.h>
#import "BMKSearchBase.h"
///Suggestion结果类
@interface BMKSuggestionResult : BMKSearchBase
{
NSArray* _keyList;
NSArray* _cityList;
NSArray* _districtList;
}
///key列表,成员是NSString
@property (nonatomic, strong) NSArray* keyList;
///city列表,成员是NSString
@property (nonatomic, strong) NSArray* cityList;
///district列表,成员是NSString
@property (nonatomic, strong) NSArray* districtList;
///poiId列表,成员是NSString
@property (nonatomic, strong) NSArray* poiIdList;
///pt列表,成员是:封装成NSValue的CLLocationCoordinate2D
@property (nonatomic, strong) NSArray* ptList;
@end
@protocol BMKSuggestionSearchDelegate;
///sug搜索服务
@interface BMKSuggestionSearch : BMKSearchBase
/// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放
@property (nonatomic, weak) id<BMKSuggestionSearchDelegate> delegate;
/**
*搜索建议检索
*@param suggestionSearchOption sug检索信息类
*异步函数,返回结果在BMKSuggestionSearchDelegate的onGetSuggestionResult通知
*@return 成功返回YES,否则返回NO
*/
- (BOOL)suggestionSearch:(BMKSuggestionSearchOption*)suggestionSearchOption;
@end
///搜索delegate,用于获取搜索结果
@protocol BMKSuggestionSearchDelegate<NSObject>
@optional
/**
*返回suggestion搜索结果
*@param searcher 搜索对象
*@param result 搜索结果
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetSuggestionResult:(BMKSuggestionSearch*)searcher result:(BMKSuggestionResult*)result errorCode:(BMKSearchErrorCode)error;
@end