TencentMapSDK_iOS_3D_v6.7.0

QMSSearcher.h
1 //
2 // QMSSearcher.h
3 // QMapSearchKit
4 //
5 // Created by fan on 2019/3/14.
6 // Copyright © 2019 tencent. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "QMSSearchOption.h"
11 #import "QMSSearchResult.h"
12 #import "QMSSearchError.h"
13 #import "QMSDistanceMatrixSearchOption.h"
14 #import "QMSDistanceMatrixSearchResult.h"
15
16 NS_ASSUME_NONNULL_BEGIN
17
18 @protocol QMSSearchDelegate;
19
23 @interface QMSSearcher : NSObject
24
28 @property (nonatomic, weak) id<QMSSearchDelegate> delegate;
29
37 - (instancetype)initWithDelegate:(id<QMSSearchDelegate>)delegate;
38
44 - (void)cancelAllRequests;
45
46
53 - (void)searchWithWalkingRouteSearchOption:(QMSWalkingRouteSearchOption *)wakingRouteSearchOption NS_SWIFT_NAME(searchWithWalkingRouteSearchOption(_:));
54
61 - (void)searchWithBicyclingRouteSearchOption:(QMSBicyclingRouteSearchOption *)bicyclingRouteSearchOption NS_SWIFT_NAME(searchWithBicyclingRouteSearchOption(_:));
62
69 - (void)searchWithPoiSearchOption:(QMSPoiSearchOption *)poiSearchOption NS_SWIFT_NAME(searchWithPoiSearchOption(_:));
70
77 - (void)searchWithPoiExploreSearchOption:(QMSPoiExploreSearchOption *)poiExploreSearchOption NS_SWIFT_NAME(searchWithPoiExploreSearchOption(_:));
78
85 - (void)searchWithPoiDetailSearchOption:(QMSPoiDetailSearchOption *)poiDetailSearchOption NS_SWIFT_NAME(searchWithPoiDetailSearchOption(_:));
86
87
94 - (void)searchWithSuggestionSearchOption:(QMSSuggestionSearchOption *)suggestionSearchOption NS_SWIFT_NAME(searchWithSuggestionSearchOption(_:));
95
102 - (void)searchWithReverseGeoCodeSearchOption:(QMSReverseGeoCodeSearchOption *)reverseGeoCodeSearchOption NS_SWIFT_NAME(searchWithReverseGeoCodeSearchOption(_:));
103
110 - (void)searchWithGeoCodeSearchOption:(QMSGeoCodeSearchOption *)geoCodeSearchOption NS_SWIFT_NAME(searchWithGeoCodeSearchOption(_:));
111
112
119 - (void)searchWithDrivingRouteSearchOption:(QMSDrivingRouteSearchOption *)drivingRouteSearchOption NS_SWIFT_NAME(searchWithDrivingRouteSearchOption(_:));
120
127 - (void)searchWithTruckingRouteSearchOption:(QMSTruckingRouteSearchOption *)truckingRouteSearchOption NS_SWIFT_NAME(searchWithTruckingRouteSearchOption(_:));
128
135 - (void)searchWithBusingRouteSearchOption:(QMSBusingRouteSearchOption *)busingRouteSearchOption NS_SWIFT_NAME(searchWithBusingRouteSearchOption(_:));
136
145 - (void)searchWithDistrictListSearchOption:(QMSDistrictListSearchOption *)districtListSearchOption NS_SWIFT_NAME(searchWithDistrictListSearchOption(_:));
146
155 - (void)searchWithDistrictChildrenSearchOption:(QMSDistrictChildrenSearchOption *)districtChildrenSearchOption NS_SWIFT_NAME(searchWithDistrictChildrenSearchOption(_:));
156
165 - (void)searchWithDistrictSearchSearchOption:(QMSDistrictSearchSearchOption *)districtSearchSearchOption NS_SWIFT_NAME(searchWithDistrictSearchSearchOption(_:));
166
175 - (void)searchWithDistanceMatrixSearchSearchOption:(QMSDistanceMatrixSearchOption *)distanceMatrixSearchOption NS_SWIFT_NAME(distanceMatrixSearchOption(_:));
176
177 @end
178
182 @protocol QMSSearchDelegate <NSObject>
183
184 @optional
185
192 - (void)searchWithSearchOption:(QMSSearchOption *)searchOption didFailWithError:(NSError*)error;
193
200 - (void)searchWithWalkingRouteSearchOption:(QMSWalkingRouteSearchOption *)walkingRouteSearchOption didRecevieResult:(QMSWalkingRouteSearchResult *)walkingRouteSearchResult;
201
208 - (void)searchWithBicyclingRouteSearchOption:(QMSBicyclingRouteSearchOption *)bicyclingRouteSearchOption didRecevieResult:(QMSBicyclingRouteSearchResult *)bicyclingRouteSearchResult;
209
216 - (void)searchWithPoiSearchOption:(QMSPoiSearchOption *)poiSearchOption didReceiveResult:(QMSPoiSearchResult *)poiSearchResult;
217
224 - (void)searchWithPoiExploreSearchOption:(QMSPoiExploreSearchOption *)poiExploreSearchOption didReceiveResult:(QMSPoiSearchResult *)poiSearchResult;
225
232 - (void)searchWithPoiDetailSearchOption:(QMSPoiDetailSearchOption *)poiDetailSearchOption didReceiveResult:(QMSPoiSearchResult *)poiSearchResult;
233
240 - (void)searchWithSuggestionSearchOption:(QMSSuggestionSearchOption *)suggestionSearchOption didReceiveResult:(QMSSuggestionResult *)suggestionSearchResult;
241
248 - (void)searchWithReverseGeoCodeSearchOption:(QMSReverseGeoCodeSearchOption *)reverseGeoCodeSearchOption didReceiveResult:(QMSReverseGeoCodeSearchResult *)reverseGeoCodeSearchResult;
249
256 - (void)searchWithGeoCodeSearchOption:(QMSGeoCodeSearchOption *)geoCodeSearchOption didReceiveResult:(QMSGeoCodeSearchResult *)geoCodeSearchResult;
257
258
265 - (void)searchWithDrivingRouteSearchOption:(QMSDrivingRouteSearchOption *)drivingRouteSearchOption didRecevieResult:(QMSDrivingRouteSearchResult *)drivingRouteSearchResult;
266
273 - (void)searchWithTruckingRouteSearchOption:(QMSTruckingRouteSearchOption *)truckingRouteSearchOption didRecevieResult:(QMSTruckingRouteSearchResult *)truckingRouteSearchResult;
274
281 - (void)searchWithBusingRouteSearchOption:(QMSBusingRouteSearchOption *)busingRouteSearchOption didRecevieResult:(QMSBusingRouteSearchResult *)busingRouteSearchResult;
282
291 - (void)searchWithDistrictSearchOption:(QMSDistrictBaseSearchOption *)districtSearchOption didRecevieResult:(QMSDistrictSearchResult *)districtSearchResult;
292
299 - (void)searchWithDistanceMatrixSearchOption:(QMSDistanceMatrixSearchOption *)distanceMatrixSearchOption didRecevieResult:(QMSDistanceMatrixSearchResult *)distanceMatrixSearchResult;
300
301 @end
302
303 NS_ASSUME_NONNULL_END
QMSDrivingRouteSearchResult
驾车路线检索结果
Definition: QMSSearchResult.h:1046
QMSWalkingRouteSearchResult
步行路线规划的检索结果
Definition: QMSSearchResult.h:777
QMSGeoCodeSearchResult
地址解析检索结果
Definition: QMSSearchResult.h:724
-[QMSSearcher cancelAllRequests]
void cancelAllRequests()
取消所有未回调的请求，触发错误回调。 error 对应的 domain 为 QMSSearchErrorDomain code 为 QMSSearchErrorCancelled = -1
QMSDistrictBaseSearchOption
行政区划的检索参数基类
Definition: QMSSearchOption.h:1113
QMSDistrictListSearchOption
行政区划列表的检索参数
Definition: QMSSearchOption.h:1135
QMSDistanceMatrixSearchOption
距离矩阵计算检索
Definition: QMSDistanceMatrixSearchOption.h:18
QMSBusingRouteSearchOption
公交路线规划的检索参数
Definition: QMSSearchOption.h:1039
QMSSearchOption
检索参数的基类
Definition: QMSSearchOption.h:16
QMSSearchDelegate-p
Search检索的协议
Definition: QMSSearcher.h:182
QMSDistrictSearchResult
行政区划检索的结果
Definition: QMSSearchResult.h:1463
QMSSuggestionSearchOption
Definition: QMSSearchOption.h:238
QMSGeoCodeSearchOption
Definition: QMSSearchOption.h:394
QMSWalkingRouteSearchOption
步行路线规划的检索参数
Definition: QMSSearchOption.h:413
QMSPoiSearchOption
Definition: QMSSearchOption.h:34
QMSReverseGeoCodeSearchOption
Definition: QMSSearchOption.h:332
QMSTruckingRouteSearchOption
Definition: QMSSearchOption.h:828
QMSSuggestionResult
关键词提示检索结果
Definition: QMSSearchResult.h:362
QMSReverseGeoCodeSearchResult
逆地址检索结果
Definition: QMSSearchResult.h:668
QMSBicyclingRouteSearchResult
骑行路线规划的检索结果
Definition: QMSSearchResult.h:791
QMSDistrictSearchSearchOption
Definition: QMSSearchOption.h:1155
QMSDrivingRouteSearchOption
驾车路线规划的检索参数
Definition: QMSSearchOption.h:606
QMSBusingRouteSearchResult
公交路径规划结果
Definition: QMSSearchResult.h:1388
QMSPoiSearchResult
Poi检索结果
Definition: QMSSearchResult.h:218
QMSPoiExploreSearchOption
周边推荐
Definition: QMSSearchOption.h:150
QMSDistrictChildrenSearchOption
获取子行政区划列表的检索参数
Definition: QMSSearchOption.h:1144
QMSBicyclingRouteSearchOption
骑行路线规划的检索参数
Definition: QMSSearchOption.h:463
QMSTruckingRouteSearchResult
货车路线检索结果
Definition: QMSSearchResult.h:1181
QMSDistanceMatrixSearchResult
距离矩阵计算结果
Definition: QMSDistanceMatrixSearchResult.h:52
QMSSearcher::delegate
id< QMSSearchDelegate > delegate
实现QMSSearchDelegate协议的对象
Definition: QMSSearcher.h:28
QMSSearcher
Search检索的主入口
Definition: QMSSearcher.h:24
QMSPoiDetailSearchOption
ID查询（detail)
Definition: QMSSearchOption.h:226