requestLocation 定位周边地址

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 成功
  • address 对象属性
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列表
  • items 对象属性
Prop Type Default Description
name String N/A 名称
address String N/A 地址
  • 失败时返回
posted on 2024-12-21 14:42  AtlasLapetos  阅读(10)  评论(0)    收藏  举报