baiduGeocoder 百度开放接口,通过经纬度返回对应的位置信息
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)
})
#返回参数
- 成功时返回
- 失败时返回
| Prop | Type | Default | Description |
|---|---|---|---|
errorCode |
Number |
N/A |
-1 请求失败 |
浙公网安备 33010602011771号