1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* 地图搜索 请求参数定义
* @apiName biz.map.search
*/
export interface IBizMapSearchParams {
/** 非必须字段,需要和longitude组合成合法经纬度,高德坐标 */
latitude: number;
/** 非必须字段,需要和latitude组合成合法经纬度,高德坐标 */
longitude: number;
/** 搜索范围,建议不要设置过低,否则可能搜索不到POI */
scope: number;
}
/**
* 地图搜索 返回结果定义
* @apiName biz.map.search
*/
export interface IBizMapSearchResult {
/** POI所在省会,可能为空 */
province: string;
/** POI所在省会编码,可能为空 */
provinceCode: string;
/** POI所在城市,可能为空 */
city: string;
/** POI所在城市的编码,可能为空 */
cityCode: string;
/** POI所在区,可能为空 */
adName: string;
/** POI所在区的编码,可能为空 */
adCode: string;
/** POI与设备位置的距离 */
distance: string;
/** POI的邮编,可能为空 */
postCode: string;
/** POI的街道地址,可能为空 */
snippet: string;
/** POI的名称 */
title: string;
/** POI的纬度,高德坐标 */
latitude: number;
/** POI的经度,高德坐标 */
longitude: number;
}
/**
* 地图搜索
* 唤起地图页面,根据设备位置或者传入的经纬度搜索POI。
* @apiName biz.map.search
* @supportVersion ios: 2.4.0 android: 2.4.0
*/
export declare function search$(params: IBizMapSearchParams): Promise<IBizMapSearchResult>;
export default search$;