# geoCode ^6.2.0
通过地址返回经纬度信息
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
operation | String | Y | - | 'geoCode' |
param | Object | Y | {} 属性: city: {Type: String, Default: N/A, Description: 城市名称,如:深圳市 } address: {Type: String, Default: N/A, Description: 具体地址 } | 请求参数 |
# 接口调用示例
this.$bridge
.geoCode(param)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
status | Number | 0/1 | 0 失败 / 1 成功 |
latitude | String | - | 纬度 |
longitude | String | - | class="font_style"经度 |
- 失败时返回
Prop | Type | Default | Description |
---|---|---|---|
status | Number | 0/1 | 0 失败 / 1 成功 |
latitude | String | - | 纬度 |
longitude | String | - | 经度 |