【发布时间】:2013-10-18 15:39:08
【问题描述】:
我从 Google 的地理编码器 API 开始,我只想返回 street_address 的 location_type。
唯一的问题是我不知道该具体要求谁。这是我现在的代码:
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'latLng':myLatLng}, function(results, status){
if(status == google.maps.GeocoderStatus.OK){
if(results.length > 0){
console.log(results);
}
else{
alert('nope');
}
}
else{
alert('nope');
}
});
如何指定我只需要 street_address 类型?
【问题讨论】:
标签: javascript google-geocoder