dddsam
dddsam
  • 发布:2017-05-23 17:27
  • 更新:2017-05-23 17:27
  • 阅读:1211

安卓打包后,定位无法获取地名

分类:HTML5+

安卓打包后,定位无法获取地名,只能获取到经纬度。但是调试时是可以获取地名的。以下是代码:

function onPlusReady() {
alert('plusready...')
plus.geolocation.getCurrentPosition( function ( p ) {
console.log('succ->'+p.address.street)
}, function ( e ) {
alert( "Geolocation error: " + e.message );
} );
}

2017-05-23 17:27 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复