iOS高德地图SDK(搜索) V9.8.0

Loading...
Searching...
No Matches
Instance Methods | List of all members
<AMapSearchDelegate> Protocol Reference

AMapSearchDelegate协议, 定义了搜索结果的回调方法，发生错误时的错误回调方法。 More...

`#include <AMapSearchAPI.h>`

Inheritance diagram for <AMapSearchDelegate>:

## Instance Methods
(void) | - AMapSearchRequest:didFailWithError:
| 当请求发生错误时，会调用代理的此方法.
(void) | - onPOISearchDone:response:
| POI查询回调函数
(void) | - onPOISearchDoneV1:response:
| POI查询回调函数
(void) | - onVisualSearchDone:response:
| 视觉图片搜索回调函数
(void) | - onRoutePOISearchDone:response:
| 沿途查询回调函数 (since v4.3.0)
(void) | - onGeocodeSearchDone:response:
| 地理编码查询回调函数
(void) | - onReGeocodeSearchDone:response:
| 逆地理编码查询回调函数
(void) | - onInputTipsSearchDone:response:
| 输入提示查询回调函数
(void) | - onBusStopSearchDone:response:
| 公交站查询回调函数
(void) | - onBusLineSearchDone:response:
| 公交线路关键字查询回调
(void) | - onDistrictSearchDone:response:
| 行政区域查询回调函数
(void) | - onRouteSearchDone:response:
| 路径规划查询回调
(void) | - onFutureRouteSearchDone:response:
| 未来路径规划查询回调 since 6.9.0
(void) | - onDistanceSearchDone:response:
| 距离查询回调
(void) | - onWeatherSearchDone:response:
| 天气查询回调
(void) | - onNearbySearchDone:response:
| 附近搜索回调
(void) | - onCloudSearchDone:response:
| 企业地图查询回调函数
(void) | - onShareSearchDone:response:
| 短串分享搜索回调
(void) | - onChargeStationSearchDone:response:
| 车机充电站搜索回调

## Detailed Description

AMapSearchDelegate协议, 定义了搜索结果的回调方法，发生错误时的错误回调方法。

## Method Documentation

## ◆ AMapSearchRequest:didFailWithError:

- (void) AMapSearchRequest: |  | (id) | request
didFailWithError: |  | (NSError *) | error
| optional

当请求发生错误时，会调用代理的此方法.

Parameters

  request | 发生错误的请求.
  error | 返回的错误.

## ◆ onBusLineSearchDone:response:

- (void) onBusLineSearchDone: |  | (AMapBusLineBaseSearchRequest *) | request
response: |  | (AMapBusLineSearchResponse *) | response
| optional

公交线路关键字查询回调

Parameters

  request | 发起的请求，具体字段参考 AMapBusLineSearchRequest 。
  response | 响应结果，具体字段参考 AMapBusLineSearchResponse 。

## ◆ onBusStopSearchDone:response:

- (void) onBusStopSearchDone: |  | (AMapBusStopSearchRequest *) | request
response: |  | (AMapBusStopSearchResponse *) | response
| optional

公交站查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapBusStopSearchRequest 。
  response | 响应结果，具体字段参考 AMapBusStopSearchResponse 。

## ◆ onChargeStationSearchDone:response:

- (void) onChargeStationSearchDone: |  | (AMapChargeStationSearchRequest *) | request
response: |  | (AMapChargeStationSearchResponse *) | response
| optional

车机充电站搜索回调

Parameters

  request | 发起的请求
  response | 相应结果，具体字段参考 AMapShareSearchResponse。

## ◆ onCloudSearchDone:response:

- (void) onCloudSearchDone: |  | (AMapCloudSearchBaseRequest *) | request
response: |  | (AMapCloudPOISearchResponse *) | response
| optional

企业地图查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapCloudSearchBaseRequest 。
  response | 响应结果，具体字段参考 AMapCloudPOISearchResponse 。

## ◆ onDistanceSearchDone:response:

- (void) onDistanceSearchDone: |  | (AMapDistanceSearchRequest *) | request
response: |  | (AMapDistanceSearchResponse *) | response
| optional

距离查询回调

Parameters

  request | 发起的请求，具体字段参考 AMapDistanceSearchRequest 及其子类。
  response | 响应结果，具体字段参考 AMapDistanceSearchResponse 。

## ◆ onDistrictSearchDone:response:

- (void) onDistrictSearchDone: |  | (AMapDistrictSearchRequest *) | request
response: |  | (AMapDistrictSearchResponse *) | response
| optional

行政区域查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapDistrictSearchRequest 。
  response | 响应结果，具体字段参考 AMapDistrictSearchResponse 。

## ◆ onFutureRouteSearchDone:response:

- (void) onFutureRouteSearchDone: |  | (AMapRouteSearchBaseRequest *) | request
response: |  | (AMapFutureRouteSearchResponse *) | response
| optional

未来路径规划查询回调 since 6.9.0

Parameters

  request | 发起的请求，具体字段参考 AMapRouteSearchBaseRequest 及其子类。
  response | 响应结果，具体字段参考 AMapRouteSearchResponse 。

## ◆ onGeocodeSearchDone:response:

- (void) onGeocodeSearchDone: |  | (AMapGeocodeSearchRequest *) | request
response: |  | (AMapGeocodeSearchResponse *) | response
| optional

地理编码查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapGeocodeSearchRequest 。
  response | 响应结果，具体字段参考 AMapGeocodeSearchResponse 。

## ◆ onInputTipsSearchDone:response:

- (void) onInputTipsSearchDone: |  | (AMapInputTipsSearchRequest *) | request
response: |  | (AMapInputTipsSearchResponse *) | response
| optional

输入提示查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapInputTipsSearchRequest 。
  response | 响应结果，具体字段参考 AMapInputTipsSearchResponse 。

## ◆ onNearbySearchDone:response:

- (void) onNearbySearchDone: |  | (AMapNearbySearchRequest *) | request
response: |  | (AMapNearbySearchResponse *) | response
| optional

附近搜索回调

Parameters

  request | 发起的请求，具体字段参考 AMapNearbySearchRequest 。
  response | 响应结果，具体字段参考 AMapNearbySearchResponse 。

## ◆ onPOISearchDone:response:

- (void) onPOISearchDone: |  | (AMapPOISearchBaseRequest *) | request
response: |  | (AMapPOISearchResponse *) | response
| optional

POI查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapPOISearchBaseRequest 及其子类。
  response | 响应结果，具体字段参考 AMapPOISearchResponse 。

## ◆ onPOISearchDoneV1:response:

- (void) onPOISearchDoneV1: |  | (AMapPOISearchBaseRequestV1 *) | request
response: |  | (AMapPOISearchResponseV1 *) | response
| optional

POI查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapPOISearchBaseRequest 及其子类。
  response | 响应结果，具体字段参考 AMapPOISearchResponse 。

## ◆ onReGeocodeSearchDone:response:

- (void) onReGeocodeSearchDone: |  | (AMapReGeocodeSearchRequest *) | request
response: |  | (AMapReGeocodeSearchResponse *) | response
| optional

逆地理编码查询回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapReGeocodeSearchRequest 。
  response | 响应结果，具体字段参考 AMapReGeocodeSearchResponse 。

## ◆ onRoutePOISearchDone:response:

- (void) onRoutePOISearchDone: |  | (AMapRoutePOISearchRequest *) | request
response: |  | (AMapRoutePOISearchResponse *) | response
| optional

沿途查询回调函数 (since v4.3.0)

Parameters

  request | 发起的请求，具体字段参考 AMapRoutePOISearchRequest 及其子类。
  response | 响应结果，具体字段参考 AMapRoutePOISearchResponse 。

## ◆ onRouteSearchDone:response:

- (void) onRouteSearchDone: |  | (AMapRouteSearchBaseRequest *) | request
response: |  | (AMapRouteSearchResponse *) | response
| optional

路径规划查询回调

Parameters

  request | 发起的请求，具体字段参考 AMapRouteSearchBaseRequest 及其子类。
  response | 响应结果，具体字段参考 AMapRouteSearchResponse 。

## ◆ onShareSearchDone:response:

- (void) onShareSearchDone: |  | (AMapShareSearchBaseRequest *) | request
response: |  | (AMapShareSearchResponse *) | response
| optional

短串分享搜索回调

Parameters

  request | 发起的请求
  response | 相应结果，具体字段参考 AMapShareSearchResponse。

## ◆ onVisualSearchDone:response:

- (void) onVisualSearchDone: |  | (AMapVisualSearchRequest *) | request
response: |  | (AMapVisualSearchResponse *) | response
| optional

视觉图片搜索回调函数

Parameters

  request | 发起的请求，具体字段参考 AMapVisualSearchRequest 。
  response | 响应结果，具体字段参考 AMapVisualSearchResponse 。

## ◆ onWeatherSearchDone:response:

- (void) onWeatherSearchDone: |  | (AMapWeatherSearchRequest *) | request
response: |  | (AMapWeatherSearchResponse *) | response
| optional

天气查询回调

Parameters

  request | 发起的请求，具体字段参考 AMapWeatherSearchRequest 。
  response | 响应结果，具体字段参考 AMapWeatherSearchResponse 。

The documentation for this protocol was generated from the following file:

- AMapSearchAPI.h

© 2017 高德信息技术有限公司 版权所有，保留所有权利。