我有一個數據庫驅動的網站,它提取的地址和地址顯示在谷歌地圖上。這是包含谷歌地圖嵌入的字符串。我沒有位置的緯度,但我有地址和區域。地點沒有出現。動態谷歌地圖位置PHP和MySQL驅動
<?php $add = $row_rsDoc['Address'];
$address = str_replace(" ","+",$add);
$gtown = str_replace(" ","+",$row_rsDoc['Town']);
$gprov = str_replace(" ","+",$row_rsDoc['Province']);
$googlestr=$address.','.'+'.$gtown.','.'+'.$gprov;
echo $googlestr;
?>
<th width="446" class="entry" scope="col"><iframe width="441" height="243" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.za/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo $googlestr; ?>&aq=&sll=-26.178375,28.033719&ie=UTF8&hq=&hnear=&radius=15000&t=m&output=embed"></iframe><br />