iOS高德地图SDK(搜索)  V9.5.0
AMapSearchAPI.h
Go to the documentation of this file.
1 //
2 // AMapSearchAPI.h
3 // AMapSearchKit
4 //
5 // Created by xiaoming han on 15/7/22.
6 // Copyright (c) 2015年 Amap. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "AMapSearchObj.h"
11 #import "AMapCommonObj.h"
12 #import <AMapFoundationKit/AMapServices.h>
13 
14 @protocol AMapSearchDelegate;
15 
17 #define AMapSearchLanguageZhCN @"zh"
18 #define AMapSearchLanguageEn @"en"
19 
20 @interface AMapSearchAPI : NSObject
22 
24 @property (nonatomic, weak) id<AMapSearchDelegate> delegate;
25 
27 @property (nonatomic, assign) NSInteger timeout;
28 
30 @property (nonatomic, copy) NSString *language;
31 
37 - (instancetype)init;
38 
42 - (void)cancelAllRequests;
43 
44 #pragma mark - Privacy 隐私合规
45 
50 + (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
55 + (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
56 
57 
58 #pragma mark - 搜索服务接口
59 
64 - (void)AMapPOIIDSearch:(AMapPOIIDSearchRequest *)request;
65 
70 - (void)AMapPOIKeywordsSearch:(AMapPOIKeywordsSearchRequest *)request;
71 
76 - (void)AMapPOIAroundSearch:(AMapPOIAroundSearchRequest *)request;
77 
82 - (void)AMapPOIPolygonSearch:(AMapPOIPolygonSearchRequest *)request;
83 
88 - (void)AMapRoutePOISearch:(AMapRoutePOISearchRequest *)request;
89 
94 - (void)AMapGeocodeSearch:(AMapGeocodeSearchRequest *)request;
95 
100 - (void)AMapReGoecodeSearch:(AMapReGeocodeSearchRequest *)request;
101 
106 - (void)AMapInputTipsSearch:(AMapInputTipsSearchRequest *)request;
107 
112 - (void)AMapBusStopSearch:(AMapBusStopSearchRequest *)request;
113 
118 - (void)AMapBusLineIDSearch:(AMapBusLineIDSearchRequest *)request;
119 
124 - (void)AMapBusLineNameSearch:(AMapBusLineNameSearchRequest *)request;
125 
130 - (void)AMapDistrictSearch:(AMapDistrictSearchRequest *)request;
131 
136 - (void)AMapDrivingV2RouteSearch:(AMapDrivingCalRouteSearchRequest *)request;
137 
142 - (void)AMapWalkingRouteSearch:(AMapWalkingRouteSearchRequest *)request;
143 
148 - (void)AMapTransitRouteSearch:(AMapTransitRouteSearchRequest *)request;
149 
154 - (void)AMapRidingRouteSearch:(AMapRidingRouteSearchRequest *)request;
155 
160 - (void)AMapTruckRouteSearch:(AMapTruckRouteSearchRequest *)request;
161 
166 - (void)AMapFutureRouteSearch:(AMapFutureRouteSearchRequest *)request;
167 
172 - (void)AMapWeatherSearch:(AMapWeatherSearchRequest *)request;
173 
178 - (void)AMapDistanceSearch:(AMapDistanceSearchRequest *)request;
179 
180 #pragma mark - 附近搜索相关
181 
186 - (void)AMapNearbySearch:(AMapNearbySearchRequest *)request __attribute__((deprecated("已废弃, from 7.4.0,该功能不再支持")));
187 
188 #pragma mark - 企业地图搜索相关
189 
194 - (void)AMapCloudPOIAroundSearch:(AMapCloudPOIAroundSearchRequest *)request;
195 
200 - (void)AMapCloudPOIPolygonSearch:(AMapCloudPOIPolygonSearchRequest *)request;
201 
206 - (void)AMapCloudPOIIDSearch:(AMapCloudPOIIDSearchRequest *)request;
207 
212 - (void)AMapCloudPOILocalSearch:(AMapCloudPOILocalSearchRequest *)request;
213 
214 #pragma mark - 短串分享相关
215 
220 - (void)AMapLocationShareSearch:(AMapLocationShareSearchRequest *)request;
221 
226 - (void)AMapPOIShareSearch:(AMapPOIShareSearchRequest *)request;
227 
232 - (void)AMapRouteShareSearch:(AMapRouteShareSearchRequest *)request;
233 
238 - (void)AMapNavigationShareSearch:(AMapNavigationShareSearchRequest *)request;
239 
240 @end
241 
242 #pragma mark - AMapSearchDelegate
243 
245 @protocol AMapSearchDelegate<NSObject>
246 @optional
247 
253 - (void)AMapSearchRequest:(id)request didFailWithError:(NSError *)error;
254 
260 - (void)onPOISearchDone:(AMapPOISearchBaseRequest *)request response:(AMapPOISearchResponse *)response;
261 
267 - (void)onRoutePOISearchDone:(AMapRoutePOISearchRequest *)request response:(AMapRoutePOISearchResponse *)response;
268 
274 - (void)onGeocodeSearchDone:(AMapGeocodeSearchRequest *)request response:(AMapGeocodeSearchResponse *)response;
275 
281 - (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response;
282 
288 - (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response;
289 
295 - (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response;
296 
302 - (void)onBusLineSearchDone:(AMapBusLineBaseSearchRequest *)request response:(AMapBusLineSearchResponse *)response;
303 
309 - (void)onDistrictSearchDone:(AMapDistrictSearchRequest *)request response:(AMapDistrictSearchResponse *)response;
310 
316 - (void)onRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapRouteSearchResponse *)response;
317 
323 - (void)onFutureRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapFutureRouteSearchResponse *)response;
324 
330 - (void)onDistanceSearchDone:(AMapDistanceSearchRequest *)request response:(AMapDistanceSearchResponse *)response;
331 
337 - (void)onWeatherSearchDone:(AMapWeatherSearchRequest *)request response:(AMapWeatherSearchResponse *)response;
338 
339 #pragma mark - 附近搜索回调
340 
346 - (void)onNearbySearchDone:(AMapNearbySearchRequest *)request response:(AMapNearbySearchResponse *)response;
347 
348 #pragma mark - 企业地图搜索回调
349 
355 - (void)onCloudSearchDone:(AMapCloudSearchBaseRequest *)request response:(AMapCloudPOISearchResponse *)response;
356 
357 #pragma mark - 短串分享搜索回调
358 
364 - (void)onShareSearchDone:(AMapShareSearchBaseRequest *)request response:(AMapShareSearchResponse *)response;
365 
366 @end
AMapPOIShareSearchRequest
兴趣点短串分享请求
Definition: AMapSearchObj.h:709
AMapRoutePOISearchRequest
沿途搜索, 注意起点和终点不能相距太远(大概70公里),否则可能搜索结果为空
Definition: AMapSearchObj.h:198
AMapPOIPolygonSearchRequest
POI多边形搜索
Definition: AMapSearchObj.h:179
AMapLocationShareSearchRequest
位置短串分享请求
Definition: AMapSearchObj.h:701
AMapShareSearchBaseRequest
短串分享搜索请求基类, 请使用具体的子类。
Definition: AMapSearchObj.h:697
AMapReGeocodeSearchResponse
逆地理编码返回
Definition: AMapSearchObj.h:287
AMapSearchDelegate-p
AMapSearchDelegate协议, 定义了搜索结果的回调方法,发生错误时的错误回调方法。
Definition: AMapSearchAPI.h:245
AMapNearbySearchResponse
附近搜索返回
Definition: AMapSearchObj.h:626
AMapInputTipsSearchRequest
搜索提示请求
Definition: AMapSearchObj.h:227
AMapSearchObj.h
AMapCloudPOIPolygonSearchRequest
企业地图polygon区域查询请求
Definition: AMapSearchObj.h:664
AMapBusLineNameSearchRequest
公交站线路根据名字请求
Definition: AMapSearchObj.h:331
AMapBusLineSearchResponse
公交站线路返回
Definition: AMapSearchObj.h:343
AMapPOISearchBaseRequest
POI搜索请求基类
Definition: AMapSearchObj.h:134
AMapGeocodeSearchResponse
地理编码返回
Definition: AMapSearchObj.h:261
AMapNavigationShareSearchRequest
导航短串分享请求
Definition: AMapSearchObj.h:737
AMapPOIIDSearchRequest
POI ID搜索请求
Definition: AMapSearchObj.h:148
AMapRidingRouteSearchRequest
骑行路径规划
Definition: AMapSearchObj.h:503
AMapRouteShareSearchRequest
路径规划短串分享请求
Definition: AMapSearchObj.h:721
AMapDistrictSearchRequest
行政区划查询请求
Definition: AMapSearchObj.h:354
AMapFutureRouteSearchRequest
未来路线规划(since 6.9.0)
Definition: AMapSearchObj.h:754
AMapDrivingCalRouteSearchRequest
驾车路径规划2.0
Definition: AMapSearchObj.h:391
AMapReGeocodeSearchRequest
逆地理编码请求
Definition: AMapSearchObj.h:272
AMapFutureRouteSearchResponse
未来路线规划(since 6.9.0)
Definition: AMapSearchObj.h:803
-[AMapSearchAPI init]
instancetype init()
AMapSearch的初始化函数。 初始化之前请正确设置key,否则将无法正常使用搜索服务.
AMapSearchAPI::timeout
NSInteger timeout
查询超时时间,单位秒,默认为20秒。
Definition: AMapSearchAPI.h:27
AMapCloudPOISearchResponse
企业地图搜索返回
Definition: AMapSearchObj.h:686
AMapSearchAPI::delegate
id< AMapSearchDelegate > delegate
实现了 AMapSearchDelegate 协议的类指针。
Definition: AMapSearchAPI.h:24
AMapBusLineIDSearchRequest
公交站线路根据ID请求
Definition: AMapSearchObj.h:337
AMapGeocodeSearchRequest
地理编码请求
Definition: AMapSearchObj.h:251
AMapDistanceSearchResponse
距离查询结果(since 6.1.0)
Definition: AMapSearchObj.h:585
AMapWeatherSearchRequest
天气查询请求
Definition: AMapSearchObj.h:594
AMapBusLineBaseSearchRequest
公交线路查询请求基类,不可直接调用
Definition: AMapSearchObj.h:319
AMapShareSearchResponse
导航短串分享响应
Definition: AMapSearchObj.h:748
AMapCloudPOIAroundSearchRequest
企业地图周边搜请求
Definition: AMapSearchObj.h:654
AMapDistrictSearchResponse
行政区划响应
Definition: AMapSearchObj.h:371
AMapBusStopSearchRequest
公交站点请求
Definition: AMapSearchObj.h:295
AMapRouteSearchResponse
路径规划返回
Definition: AMapSearchObj.h:509
AMapWeatherSearchResponse
天气查询返回
Definition: AMapSearchObj.h:602
AMapDistanceSearchRequest
距离查询请求(since 6.1.0)
Definition: AMapSearchObj.h:571
-[AMapSearchAPI cancelAllRequests]
void cancelAllRequests()
取消所有未回调的请求,触发错误回调。
AMapTruckRouteSearchRequest
货车路径规划(since 6.1.0)
Definition: AMapSearchObj.h:523
AMapPOIKeywordsSearchRequest
POI关键字搜索
Definition: AMapSearchObj.h:154
AMapRouteSearchBaseRequest
路径规划基础类,不可直接调用
Definition: AMapSearchObj.h:381
AMapSearchAPI
搜索类
Definition: AMapSearchAPI.h:22
AMapRoutePOISearchResponse
沿途搜索返回
Definition: AMapSearchObj.h:217
AMapPOISearchResponse
POI搜索返回
Definition: AMapSearchObj.h:187
AMapCloudPOIIDSearchRequest
企业地图ID查询请求
Definition: AMapSearchObj.h:672
AMapCloudPOILocalSearchRequest
企业地图本地查询请求
Definition: AMapSearchObj.h:678
AMapNearbySearchRequest
附近搜索请求
Definition: AMapSearchObj.h:612
AMapPOIAroundSearchRequest
POI周边搜索
Definition: AMapSearchObj.h:167
AMapCommonObj.h
AMapTransitRouteSearchRequest
公交路径规划
Definition: AMapSearchObj.h:458
AMapCloudSearchBaseRequest
企业地图搜索请求基类
Definition: AMapSearchObj.h:636
AMapBusStopSearchResponse
公交站点返回
Definition: AMapSearchObj.h:307
AMapInputTipsSearchResponse
搜索提示返回
Definition: AMapSearchObj.h:241
AMapWalkingRouteSearchRequest
步行路径规划
Definition: AMapSearchObj.h:443
AMapSearchAPI::language
NSString * language
查询结果返回语言, 默认为中文。
Definition: AMapSearchAPI.h:30
© 2017 高德信息技术有限公司 版权所有,保留所有权利。