searchMapAddress 根据模糊地址,返回地图服务的查询结果数据

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)
  })

#返回参数

  • 成功时返回
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 经度
  • 失败时返回
posted on 2024-12-21 14:42  AtlasLapetos  阅读(16)  评论(0)    收藏  举报