获取地理位置
注: 在weex端,接入chameleon客户端sdk之后才可以使用该方法
getLocationInfo
参数
无
返回值
| 参数 | 类型 | 说明 | 
|---|---|---|
| lng | Number | 经度 | 
| lat | Number | 纬度 | 
举例
  cml.getLocationInfo().then(res => {
    // res: { lng[number]: 40.33, lat[number]: 154.33 }
    cml.showToast({
        message: JSON.stringify(res),
        duration: 2000
    })
})
