百度地图api开发:根据坐标获得地理描述地址

时间:2021-10-28 15:17:30

// 创建地理编码实例      
        var myGeo = new BMap.Geocoder();      
        // 根据坐标得到地址描述    
        myGeo.getLocation(point, function(result){
            var boundary = result.addressComponents.city+result.addressComponents.district;
             getBoundary(boundary);   
        });