ios打包后uni.getLocation无法获取定位信息的address
返回数据为{"type":"gcj02","latitude":39.049438,"longitude":117.701996,"speed":0,"accuracy":36,"errMsg":"getLocation:ok"},里面没有需要的address信息,代码内也是设置了geocode为true的,如下
uni.getLocation({
type: 'gcj02',
geocode: true,
success: res => {
uni.showModal({
title:'gcj02',
content:JSON.stringify(res)
})
}
});
0 个回复