ジオコーダで郵便番号を検索した後、Google マップに表示されているように、その郵便番号地域の境界を表示したいと考えています。私はmaps.google.comの例として02201を検索しており、そのzip範囲の下のすべての領域を示すzip領域全体の境界を示しています。これは、ジオコーダーを使用して郵便番号を検索する私のコードであり、実装したいその郵便番号領域の周囲に境界を追加したいと考えています。解決策を提供してください。画像については、このリンクを参照してくださいhttp://i46.tinypic.com/beyerq.jpg
function codeAddress() {
var address = document.getElementById("address").value;
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
map.fitBounds(results[0].geometry.viewport);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}