テーブルからデータを取得して、Google マップにプロットしようとしています。
私は動作する以下を使用しています...
function addPostCode(zip) {
geocoder.geocode( { 'address': zip}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK)
{
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location,
name: zip
});
markers.push(marker);
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
たとえば、私の郵便番号が LA14 の場合にのみ、これをドイツでは la14 と呼ばれる道路としてプロットしますが、英国ではファーネスの手押し車とは対照的に、これを解決する方法について何か考えがある人はいますか?