# baiduGeocoder ^6.8

百度开放接口,通过经纬度返回对应的位置信息

# 请求参数

Prop Type Default Comment
latitude Number N/A 纬度
longitude Number N/A 经度

# 接口调用示例

const params = {
  latitude: 123,
  longitude: 156,
}
this.$bridge
  .baiduGeocoder(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
errorCode Number N/A -1 请求失败
更新时间: 7/27/2021, 11:23:45 AM