plus.geolocation.getCurrentPosition(function(position){
var currentLon = position.coords.longitude;
var currentLat = position.coords.latitude;
var point = new plus.maps.Point(currentLon,currentLat);
plus.maps.Map.reverseGeocode(point,{},function(event){
var address = event.address;
var point = event.coord;
var coordType = event.coordType;
console.log(JSON.stringify(event));
$(".dizhi").html(address);
},function(e){
console.log("Failed:"+JSON.stringify(e));
});
},function(e){
mui.toast("异常:" + e.message);
},{
geocode:true,
provider:'amap'
});
结果是:
{"coord":{"longitude":102.843,"latitude":24.951332},"address":"云南省昆明市呈贡区","coordType":"bd09ll"}
xxx省xx市xxx区,就到这个层级,别人正常 就我不正常,求助
再来张图片的,跟上面是一样的 :