iOS高德地图SDK(搜索) V9.8.0
Loading...
Searching...
No Matches
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 "AMapSearchObjV1.h"
11#import "AMapSearchObj.h"
12#import "AMapCommonObj.h"
13#import <AMapFoundationKit/AMapServices.h>
14
15@protocol AMapSearchDelegate;
16
18#define AMapSearchLanguageZhCN @"zh-Hans"
19#define AMapSearchLanguageEn @"en"
20
22@interface AMapSearchAPI : NSObject
23
25@property (nonatomic, weak) id<AMapSearchDelegate> delegate;
26
28@property (nonatomic, assign) NSInteger timeout;
29
30// 注意:在使用地图功能前,请通过 [AMapServices sharedServices].regionLanguageType 来设置语言类型 (since 11.2.000)
32//@property (nonatomic, copy) NSString *language;
33
35@property (nonatomic, copy) NSDictionary<NSString *, NSString *> *customParams;
36
42- (instancetype)init;
43
47- (void)cancelAllRequests;
48
49#pragma mark - Privacy 隐私合规
55+ (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
60+ (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
61
62
63#pragma mark - 搜索服务接口
64
69- (void)AMapPOIIDSearch:(AMapPOIIDSearchRequest *)request;
70
75- (void)AMapPOIPicVisualSearch:(AMapVisualSearchRequest *)request;
76
81- (void)AMapPOIKeywordsSearch:(AMapPOIKeywordsSearchRequest *)request;
82
87- (void)AMapPOIAroundSearch:(AMapPOIAroundSearchRequest *)request;
88
93- (void)AMapPOIPolygonSearch:(AMapPOIPolygonSearchRequest *)request;
94
95#pragma mark - 搜索服务接口V1(API版本V3)
96
101- (void)AMapPOIIDSearchV1:(AMapPOIIDSearchRequestV1 *)request;
102
107- (void)AMapPOIKeywordsSearchV1:(AMapPOIKeywordsSearchRequestV1 *)request;
108
113- (void)AMapPOIAroundSearchV1:(AMapPOIAroundSearchRequestV1 *)request;
114
119- (void)AMapPOIPolygonSearchV1:(AMapPOIPolygonSearchRequestV1 *)request;
120
125- (void)AMapRoutePOISearch:(AMapRoutePOISearchRequest *)request;
126
131- (void)AMapGeocodeSearch:(AMapGeocodeSearchRequest *)request;
132
137- (void)AMapReGoecodeSearch:(AMapReGeocodeSearchRequest *)request;
138
143- (void)AMapInputTipsSearch:(AMapInputTipsSearchRequest *)request;
144
149- (void)AMapBusStopSearch:(AMapBusStopSearchRequest *)request;
150
155- (void)AMapBusLineIDSearch:(AMapBusLineIDSearchRequest *)request;
156
161- (void)AMapBusLineNameSearch:(AMapBusLineNameSearchRequest *)request;
162
167- (void)AMapDistrictSearch:(AMapDistrictSearchRequest *)request;
168
173- (void)AMapDrivingRouteSearch:(AMapDrivingRouteSearchRequest *)request;
174
179- (void)AMapDrivingV2RouteSearch:(AMapDrivingCalRouteSearchRequest *)request;
180
185- (void)AMapWalkingRouteSearch:(AMapWalkingRouteSearchRequest *)request;
186
191- (void)AMapTransitRouteSearch:(AMapTransitRouteSearchRequest *)request;
192
197- (void)AMapRidingRouteSearch:(AMapRidingRouteSearchRequest *)request;
198
203- (void)AMapTruckRouteSearch:(AMapTruckRouteSearchRequest *)request;
204
209- (void)AMapFutureRouteSearch:(AMapFutureRouteSearchRequest *)request;
210
215- (void)AMapWeatherSearch:(AMapWeatherSearchRequest *)request;
216
221- (void)AMapDistanceSearch:(AMapDistanceSearchRequest *)request;
222
223- (void)AMapChargeStationSearch:(AMapChargeStationSearchRequest *)request;
224#pragma mark - 附近搜索相关
225
230- (void)AMapNearbySearch:(AMapNearbySearchRequest *)request __attribute__((deprecated("已废弃, from 7.4.0,该功能不再支持")));
231
232#pragma mark - 企业地图搜索相关
233
238- (void)AMapCloudPOIAroundSearch:(AMapCloudPOIAroundSearchRequest *)request;
239
244- (void)AMapCloudPOIPolygonSearch:(AMapCloudPOIPolygonSearchRequest *)request;
245
250- (void)AMapCloudPOIIDSearch:(AMapCloudPOIIDSearchRequest *)request;
251
256- (void)AMapCloudPOILocalSearch:(AMapCloudPOILocalSearchRequest *)request;
257
258#pragma mark - 短串分享相关
259
264- (void)AMapLocationShareSearch:(AMapLocationShareSearchRequest *)request;
265
270- (void)AMapPOIShareSearch:(AMapPOIShareSearchRequest *)request;
271
276- (void)AMapRouteShareSearch:(AMapRouteShareSearchRequest *)request;
277
282- (void)AMapNavigationShareSearch:(AMapNavigationShareSearchRequest *)request;
283
284@end
285
286#pragma mark - AMapSearchDelegate
287
289@protocol AMapSearchDelegate<NSObject>
290@optional
291
297- (void)AMapSearchRequest:(id)request didFailWithError:(NSError *)error;
298
304- (void)onPOISearchDone:(AMapPOISearchBaseRequest *)request response:(AMapPOISearchResponse *)response;
305
311- (void)onPOISearchDoneV1:(AMapPOISearchBaseRequestV1 *)request response:(AMapPOISearchResponseV1 *)response;
317- (void)onVisualSearchDone:(AMapVisualSearchRequest *)request response:(AMapVisualSearchResponse *)response;
318
324- (void)onRoutePOISearchDone:(AMapRoutePOISearchRequest *)request response:(AMapRoutePOISearchResponse *)response;
325
331- (void)onGeocodeSearchDone:(AMapGeocodeSearchRequest *)request response:(AMapGeocodeSearchResponse *)response;
332
338- (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response;
339
345- (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response;
346
352- (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response;
353
359- (void)onBusLineSearchDone:(AMapBusLineBaseSearchRequest *)request response:(AMapBusLineSearchResponse *)response;
360
366- (void)onDistrictSearchDone:(AMapDistrictSearchRequest *)request response:(AMapDistrictSearchResponse *)response;
367
373- (void)onRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapRouteSearchResponse *)response;
374
380- (void)onFutureRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapFutureRouteSearchResponse *)response;
381
387- (void)onDistanceSearchDone:(AMapDistanceSearchRequest *)request response:(AMapDistanceSearchResponse *)response;
388
394- (void)onWeatherSearchDone:(AMapWeatherSearchRequest *)request response:(AMapWeatherSearchResponse *)response;
395
396#pragma mark - 附近搜索回调
397
403- (void)onNearbySearchDone:(AMapNearbySearchRequest *)request response:(AMapNearbySearchResponse *)response;
404
405#pragma mark - 企业地图搜索回调
406
412- (void)onCloudSearchDone:(AMapCloudSearchBaseRequest *)request response:(AMapCloudPOISearchResponse *)response;
413
414#pragma mark - 短串分享搜索回调
415
421- (void)onShareSearchDone:(AMapShareSearchBaseRequest *)request response:(AMapShareSearchResponse *)response;
422
423#pragma mark - 车机充电站搜索回调
424
430- (void)onChargeStationSearchDone:(AMapChargeStationSearchRequest *)request response:(AMapChargeStationSearchResponse *)response;
431@end
公交线路查询请求基类,不可直接调用
Definition AMapSearchObj.h:357
公交站线路根据ID请求
Definition AMapSearchObj.h:375
公交站线路根据名字请求
Definition AMapSearchObj.h:369
公交站线路返回
Definition AMapSearchObj.h:381
公交站点请求
Definition AMapSearchObj.h:333
公交站点返回
Definition AMapSearchObj.h:345
充电站搜索(since 9.7.0)
Definition AMapSearchObj.h:908
充电站搜索(since 9.7.0)
Definition AMapSearchObj.h:912
企业地图周边搜请求
Definition AMapSearchObj.h:751
企业地图ID查询请求
Definition AMapSearchObj.h:769
企业地图本地查询请求
Definition AMapSearchObj.h:775
企业地图polygon区域查询请求
Definition AMapSearchObj.h:761
企业地图搜索返回
Definition AMapSearchObj.h:783
企业地图搜索请求基类
Definition AMapSearchObj.h:733
距离查询请求(since 6.1.0)
Definition AMapSearchObj.h:668
距离查询结果(since 6.1.0)
Definition AMapSearchObj.h:682
行政区划查询请求
Definition AMapSearchObj.h:392
行政区划响应
Definition AMapSearchObj.h:409
驾车路径规划2.0
Definition AMapSearchObj.h:429
驾车路径规划
Definition AMapSearchObj.h:481
未来路线规划(since 6.9.0)
Definition AMapSearchObj.h:851
未来路线规划(since 6.9.0)
Definition AMapSearchObj.h:900
地理编码请求
Definition AMapSearchObj.h:289
地理编码返回
Definition AMapSearchObj.h:299
搜索提示请求
Definition AMapSearchObj.h:265
搜索提示返回
Definition AMapSearchObj.h:279
位置短串分享请求
Definition AMapSearchObj.h:798
导航短串分享请求
Definition AMapSearchObj.h:834
附近搜索请求
Definition AMapSearchObj.h:709
附近搜索返回
Definition AMapSearchObj.h:723
POI周边搜索
Definition AMapSearchObj.h:183
POI周边搜索
Definition AMapSearchObjV1.h:55
POI ID搜索请求
Definition AMapSearchObj.h:148
POI ID搜索请求
Definition AMapSearchObjV1.h:36
POI关键字搜索
Definition AMapSearchObj.h:170
POI关键字搜索
Definition AMapSearchObjV1.h:42
POI多边形搜索
Definition AMapSearchObj.h:195
POI多边形搜索
Definition AMapSearchObjV1.h:70
POI搜索请求基类
Definition AMapSearchObj.h:134
POI搜索请求基类
Definition AMapSearchObjV1.h:18
POI搜索返回
Definition AMapSearchObj.h:203
POI搜索返回
Definition AMapSearchObjV1.h:78
兴趣点短串分享请求
Definition AMapSearchObj.h:806
逆地理编码请求
Definition AMapSearchObj.h:310
逆地理编码返回
Definition AMapSearchObj.h:325
骑行路径规划
Definition AMapSearchObj.h:598
沿途搜索, 注意起点和终点不能相距太远(大概70公里),否则可能搜索结果为空
Definition AMapSearchObj.h:236
沿途搜索返回
Definition AMapSearchObj.h:255
路径规划基础类,不可直接调用
Definition AMapSearchObj.h:419
路径规划返回
Definition AMapSearchObj.h:606
路径规划短串分享请求
Definition AMapSearchObj.h:818
搜索类
Definition AMapSearchAPI.h:23
NSDictionary< NSString *, NSString * > * customParams
查询结果返回语言, 默认为中文。
Definition AMapSearchAPI.h:35
instancetype init()
AMapSearch的初始化函数。 初始化之前请正确设置key,否则将无法正常使用搜索服务.
id< AMapSearchDelegate > delegate
实现了 AMapSearchDelegate 协议的类指针。
Definition AMapSearchAPI.h:25
void cancelAllRequests()
取消所有未回调的请求,触发错误回调。
NSInteger timeout
查询超时时间,单位秒,默认为20秒。
Definition AMapSearchAPI.h:28
短串分享搜索请求基类, 请使用具体的子类。
Definition AMapSearchObj.h:794
导航短串分享响应
Definition AMapSearchObj.h:845
公交路径规划
Definition AMapSearchObj.h:553
货车路径规划(since 6.1.0)
Definition AMapSearchObj.h:620
视觉图片搜索请求 (since 9.7.0)
Definition AMapSearchObj.h:156
视觉图片搜索返回 (since 9.7.0)
Definition AMapSearchObj.h:227
步行路径规划
Definition AMapSearchObj.h:538
天气查询请求
Definition AMapSearchObj.h:691
天气查询返回
Definition AMapSearchObj.h:699
© 2017 高德信息技术有限公司 版权所有,保留所有权利。