# geoCode ^6.8

正地理编码

# 请求参数

Prop Type Required Default Comment
address String Y N/A 具体地址
city String Y N/A 城市名

# 接口调用示例

const params = {
  city: '武汉市',
  address: '江夏区',
}
this.$bridge
  .geoCode(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11
12

# 返回参数

  • 成功时返回
Prop Type Default Description
status Number N/A 0 成功 1
latitude String N/A 纬度
longitude String N/A 经度
  • 失败时返回
更新时间: 11/10/2022, 3:19:49 PM