ifish/Ifish/BMKMap3.3.0/BaiduMapAPI_Search.framework/Headers/BMKSuggestionSearch.h

66 lines
1.8 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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