暂时用的是google地图提供的APIvar geocoder = new GClientGeocoder();
geocoder.getLocations(latlng,showAddress);
然后发现Place[0].address出来的地址有问题。
市里面的都有详细的地址,到了外面,出了市,所有的经纬度都被定位到了国道或者省道上了。返回来的地址都是国道或者省道。
我想找到详细的地址,比如什么什么村往北偏差多少多少米。这种。请问怎么办。
geocoder.getLocations(latlng,showAddress);
然后发现Place[0].address出来的地址有问题。
市里面的都有详细的地址,到了外面,出了市,所有的经纬度都被定位到了国道或者省道上了。返回来的地址都是国道或者省道。
我想找到详细的地址,比如什么什么村往北偏差多少多少米。这种。请问怎么办。
{
var ptlat= document.getElementById("<%=tblat.ClientID %>").value;
var ptlon= document.getElementById("<%=tblon.ClientID %>").value;
var latlng= new GLatLng(ptlat,ptlon);
var geocoder = new GClientGeocoder();
geocoder.getLocations(latlng,showAddress);
}
function showAddress(response)
{
if (!response || response.Status.code != 200)
{
document.getElementById("<%=lbaddress.ClientID %>").innerHTML="";
}
else
{
var place = response.Place[0];
var point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
var er = new GMarker(point);
document.getElementById("<%=lbaddress.ClientID %>").innerHTML=place.address;
}
}我是根据google地图经纬度定位,问题是,超出县级市级后,google返回的地址是经纬度坐标附近的公路名字。而不是村庄名字,这个问题咋解决?
http://blog.csdn.net/sjb5201/archive/2011/03/09/6234764.aspx