通过经纬度获取地址信息(googleMap v3)

//必须要导入googleAPI才可以这么做 V3
var geocoder = new google.maps.Geocoder();
function parseAddress (weidu,jingdu,id){
	if(document.getElementById(id)!=null){
		geocoder.geocode({"address":weidu+","+jingdu}, function(results,status) {
			if (status == google.maps.GeocoderStatus.OK) {			 				document.getElementById(id).innerHTML=results[0].formatted_address;
                 }
		});
	}
}

你可能感兴趣的:(java,Google)