requestLocation ^6.8
定位周边地址
#请求参数
N/A
#接口调用示例
this.$bridge
.requestLocation()
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
| Prop |
Type |
Default |
Description |
address |
Object |
N/A |
地址 |
status |
Number |
N/A |
0失败 ,1 成功 |
| Prop |
Type |
Default |
Description |
district |
String |
N/A |
区 |
longitude |
String |
N/A |
经度 |
province |
String |
N/A |
省 |
cityCode |
String |
N/A |
城市编码 |
streetNumber |
String |
N/A |
街道号码 |
country |
String |
N/A |
国家 |
latitude |
String |
N/A |
纬度 |
city |
String |
N/A |
城市 |
street |
String |
N/A |
街道 |
adCode |
String |
N/A |
行政编码 |
poiList |
Array |
N/A |
poi列表 |
| Prop |
Type |
Default |
Description |
name |
String |
N/A |
名称 |
address |
String |
N/A |
地址 |