# searchMapAddress ^6.8
根据模糊地址,返回地图服务的查询结果数据
# 请求参数
Prop | Type | Required | Default | Comment |
---|---|---|---|---|
city | String | Y | N/A | 需要查询的城市(范围) 必选 |
keyword | String | Y | N/A | 需要查询的地址 必选 |
# 接口调用示例
const params = {
city: '武汉市',
keyword: '花山软件新城',
}
this.$bridge
.searchMapAddress(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
status | Number | N/A | 0 成功,1 失败 |
resultList | Array | N/A |
- items 对象属性
Prop | Type | Default | Description |
---|---|---|---|
uid | String | N/A | |
key | String | N/A | 关键字 |
latitude | String | N/A | 纬度 |
district | String | N/A | 区 |
city | String | N/A | 城市 |
longitude | String | N/A | 经度 |
- 失败时返回