var point = new BMap.Point(经度, 纬度);
var gc = new BMap.Geocoder();
gc.getLocation(point, function (rs) {
debugger;
var addComp = rs.addressComponents;
alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
});
原文地址:https://www.cnblogs.com/jimmyLei/p/9040294.html
时间: 2024-11-06 07:31:07