geoCode 正地理编码
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)
})
#返回参数
- 成功时返回
| Prop | Type | Default | Description |
|---|---|---|---|
status |
Number |
N/A |
0 成功 1 |
latitude |
String |
N/A |
纬度 |
longitude |
String |
N/A |
经度 |
- 失败时返回
浙公网安备 33010602011771号