iOS高德地图SDK(搜索)  V7.4.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 
13 @protocol AMapSearchDelegate;
14 
16 #define AMapSearchLanguageZhCN @"zh"
17 #define AMapSearchLanguageEn @"en"
18 
19 @interface AMapSearchAPI : NSObject
21 
23 @property (nonatomic, weak) id<AMapSearchDelegate> delegate;
24 
26 @property (nonatomic, assign) NSInteger timeout;
27 
29 @property (nonatomic, copy) NSString *language;
30 
36 - (instancetype)init;
37 
41 - (void)cancelAllRequests;
42 
43 #pragma mark - 搜索服务接口
44 
49 - (void)AMapPOIIDSearch:(AMapPOIIDSearchRequest *)request;
50 
55 - (void)AMapPOIKeywordsSearch:(AMapPOIKeywordsSearchRequest *)request;
56 
61 - (void)AMapPOIAroundSearch:(AMapPOIAroundSearchRequest *)request;
62 
67 - (void)AMapPOIPolygonSearch:(AMapPOIPolygonSearchRequest *)request;
68 
73 - (void)AMapRoutePOISearch:(AMapRoutePOISearchRequest *)request;
74 
79 - (void)AMapGeocodeSearch:(AMapGeocodeSearchRequest *)request;
80 
85 - (void)AMapReGoecodeSearch:(AMapReGeocodeSearchRequest *)request;
86 
91 - (void)AMapInputTipsSearch:(AMapInputTipsSearchRequest *)request;
92 
97 - (void)AMapBusStopSearch:(AMapBusStopSearchRequest *)request;
98 
103 - (void)AMapBusLineIDSearch:(AMapBusLineIDSearchRequest *)request;
104 
109 - (void)AMapBusLineNameSearch:(AMapBusLineNameSearchRequest *)request;
110 
115 - (void)AMapDistrictSearch:(AMapDistrictSearchRequest *)request;
116 
121 - (void)AMapDrivingRouteSearch:(AMapDrivingRouteSearchRequest *)request;
122 
127 - (void)AMapWalkingRouteSearch:(AMapWalkingRouteSearchRequest *)request;
128 
133 - (void)AMapTransitRouteSearch:(AMapTransitRouteSearchRequest *)request;
134 
139 - (void)AMapRidingRouteSearch:(AMapRidingRouteSearchRequest *)request;
140 
145 - (void)AMapTruckRouteSearch:(AMapTruckRouteSearchRequest *)request;
146 
151 - (void)AMapFutureRouteSearch:(AMapFutureRouteSearchRequest *)request;
152 
157 - (void)AMapWeatherSearch:(AMapWeatherSearchRequest *)request;
158 
163 - (void)AMapRoadTrafficSearch:(AMapRoadTrafficSearchRequest *)request;
164 
169 - (void)AMapRoadTrafficCircleSearch:(AMapRoadTrafficCircleSearchRequest *)request;
170 
175 - (void)AMapDistanceSearch:(AMapDistanceSearchRequest *)request;
176 
177 #pragma mark - 附近搜索相关
178 
183 - (void)AMapNearbySearch:(AMapNearbySearchRequest *)request __attribute__((deprecated("已废弃, from 7.4.0,该功能不再支持")));
184 
185 #pragma mark - 企业地图搜索相关
186 
191 - (void)AMapCloudPOIAroundSearch:(AMapCloudPOIAroundSearchRequest *)request;
192 
197 - (void)AMapCloudPOIPolygonSearch:(AMapCloudPOIPolygonSearchRequest *)request;
198 
203 - (void)AMapCloudPOIIDSearch:(AMapCloudPOIIDSearchRequest *)request;
204 
209 - (void)AMapCloudPOILocalSearch:(AMapCloudPOILocalSearchRequest *)request;
210 
211 #pragma mark - 短串分享相关
212 
217 - (void)AMapLocationShareSearch:(AMapLocationShareSearchRequest *)request;
218 
223 - (void)AMapPOIShareSearch:(AMapPOIShareSearchRequest *)request;
224 
229 - (void)AMapRouteShareSearch:(AMapRouteShareSearchRequest *)request;
230 
235 - (void)AMapNavigationShareSearch:(AMapNavigationShareSearchRequest *)request;
236 
237 @end
238 
239 #pragma mark - AMapSearchDelegate
240 
242 @protocol AMapSearchDelegate<NSObject>
243 @optional
244 
250 - (void)AMapSearchRequest:(id)request didFailWithError:(NSError *)error;
251 
257 - (void)onPOISearchDone:(AMapPOISearchBaseRequest *)request response:(AMapPOISearchResponse *)response;
258 
264 - (void)onRoutePOISearchDone:(AMapRoutePOISearchRequest *)request response:(AMapRoutePOISearchResponse *)response;
265 
271 - (void)onGeocodeSearchDone:(AMapGeocodeSearchRequest *)request response:(AMapGeocodeSearchResponse *)response;
272 
278 - (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response;
279 
285 - (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response;
286 
292 - (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response;
293 
299 - (void)onBusLineSearchDone:(AMapBusLineBaseSearchRequest *)request response:(AMapBusLineSearchResponse *)response;
300 
306 - (void)onDistrictSearchDone:(AMapDistrictSearchRequest *)request response:(AMapDistrictSearchResponse *)response;
307 
313 - (void)onRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapRouteSearchResponse *)response;
314 
320 - (void)onFutureRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapFutureRouteSearchResponse *)response;
321 
327 - (void)onDistanceSearchDone:(AMapDistanceSearchRequest *)request response:(AMapDistanceSearchResponse *)response;
328 
334 - (void)onWeatherSearchDone:(AMapWeatherSearchRequest *)request response:(AMapWeatherSearchResponse *)response;
335 
336 
342 - (void)onRoadTrafficSearchDone:(AMapRoadTrafficSearchBaseRequest *)request response:(AMapRoadTrafficSearchResponse *)response;
343 #pragma mark - 附近搜索回调
344 
350 - (void)onNearbySearchDone:(AMapNearbySearchRequest *)request response:(AMapNearbySearchResponse *)response;
351 
352 #pragma mark - 企业地图搜索回调
353 
359 - (void)onCloudSearchDone:(AMapCloudSearchBaseRequest *)request response:(AMapCloudPOISearchResponse *)response;
360 
361 #pragma mark - 短串分享搜索回调
362 
368 - (void)onShareSearchDone:(AMapShareSearchBaseRequest *)request response:(AMapShareSearchResponse *)response;
369 
370 @end
逆地理编码请求
Definition: AMapSearchObj.h:210
POI ID搜索请求
Definition: AMapSearchObj.h:85
AMapSearchDelegate协议, 定义了搜索结果的回调方法,发生错误时的错误回调方法。
Definition: AMapSearchAPI.h:242
NSString * language
查询结果返回语言, 默认为中文。
Definition: AMapSearchAPI.h:29
路径规划短串分享请求
Definition: AMapSearchObj.h:664
搜索提示返回
Definition: AMapSearchObj.h:179
公交站线路根据名字请求
Definition: AMapSearchObj.h:269
道路实时路况查询请求 since 5.1.0
Definition: AMapSearchObj.h:526
公交站点返回
Definition: AMapSearchObj.h:245
搜索类
Definition: AMapSearchAPI.h:20
天气查询返回
Definition: AMapSearchObj.h:505
沿途搜索, 注意起点和终点不能相距太远(大概70公里),否则可能搜索结果为空
Definition: AMapSearchObj.h:136
企业地图ID查询请求
Definition: AMapSearchObj.h:615
POI搜索返回
Definition: AMapSearchObj.h:125
距离查询请求(since 6.1.0)
Definition: AMapSearchObj.h:477
沿途搜索返回
Definition: AMapSearchObj.h:155
POI周边搜索
Definition: AMapSearchObj.h:104
距离查询结果(since 6.1.0)
Definition: AMapSearchObj.h:488
POI关键字搜索
Definition: AMapSearchObj.h:91
短串分享搜索请求基类, 请使用具体的子类。
Definition: AMapSearchObj.h:640
驾车路径规划
Definition: AMapSearchObj.h:329
骑行路径规划
Definition: AMapSearchObj.h:410
附近搜索返回
Definition: AMapSearchObj.h:569
未来路线规划(since 6.9.0)
Definition: AMapSearchObj.h:697
导航短串分享响应
Definition: AMapSearchObj.h:691
地理编码请求
Definition: AMapSearchObj.h:189
公交站点请求
Definition: AMapSearchObj.h:233
POI多边形搜索
Definition: AMapSearchObj.h:117
id< AMapSearchDelegate > delegate
实现了 AMapSearchDelegate 协议的类指针。
Definition: AMapSearchAPI.h:23
公交站线路返回
Definition: AMapSearchObj.h:281
企业地图搜索请求基类
Definition: AMapSearchObj.h:579
POI搜索请求基类
Definition: AMapSearchObj.h:67
公交线路查询请求基类,不可直接调用
Definition: AMapSearchObj.h:257
行政区划查询请求
Definition: AMapSearchObj.h:292
搜索提示请求
Definition: AMapSearchObj.h:165
企业地图polygon区域查询请求
Definition: AMapSearchObj.h:607
企业地图搜索返回
Definition: AMapSearchObj.h:629
未来路线规划(since 6.9.0)
Definition: AMapSearchObj.h:746
路径规划返回
Definition: AMapSearchObj.h:416
企业地图周边搜请求
Definition: AMapSearchObj.h:597
instancetype init()
AMapSearch的初始化函数。 初始化之前请正确设置key,否则将无法正常使用搜索服务.
NSInteger timeout
查询超时时间,单位秒,默认为20秒。
Definition: AMapSearchAPI.h:26
兴趣点短串分享请求
Definition: AMapSearchObj.h:652
步行路径规划
Definition: AMapSearchObj.h:386
导航短串分享请求
Definition: AMapSearchObj.h:680
公交站线路根据ID请求
Definition: AMapSearchObj.h:275
位置短串分享请求
Definition: AMapSearchObj.h:644
行政区划响应
Definition: AMapSearchObj.h:309
附近搜索请求
Definition: AMapSearchObj.h:555
货车路径规划(since 6.1.0)
Definition: AMapSearchObj.h:430
公交路径规划
Definition: AMapSearchObj.h:394
地理编码返回
Definition: AMapSearchObj.h:199
void cancelAllRequests()
取消所有未回调的请求,触发错误回调。
逆地理编码返回
Definition: AMapSearchObj.h:225
路径规划基础类,不可直接调用
Definition: AMapSearchObj.h:319
Definition: AMapSearchObj.h:515
道路实时路况查询返回 since 5.1.0
Definition: AMapSearchObj.h:547
天气查询请求
Definition: AMapSearchObj.h:497
圆形区域道路实时路况查询请求 since 5.5.0 注意:返回路况结果取决于发起请求时刻的实时路况,不保证范围内...
Definition: AMapSearchObj.h:537
企业地图本地查询请求
Definition: AMapSearchObj.h:621
© 2017 高德信息技术有限公司 版权所有,保留所有权利。