geoCode 通过地址返回经纬度信息

geoCode ^6.2.0

通过地址返回经纬度信息

#请求参数

Prop Type Required Default Description
operation String Y - 'geoCode'
param Object Y {} 属性: city: address: 请求参数

#接口调用示例

this.$bridge
    .geoCode(param)
    .then(res => {    
      this.$alert(res)
    })
    .catch(err => {
      this.$toast(err)
    })

#返回参数

  • 成功时返回
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 - 经度
posted on 2024-12-17 09:29  AtlasLapetos  阅读(32)  评论(0)    收藏  举报