在我的页面上,我有许多用户显示,每个用户都有一个邮政编码。
是否有可能以某种方式使用PHP在Google地图上显示该位置的iframe?我已经尝试使用谷歌搜索和堆栈溢出来获得答案,这是最好的我发现它只是一个链接而不是将其嵌入页面?
答案 0 :(得分:0)
不需要PHP。只需创建一个指向https://maps.google.co.uk/maps?q=POSTCODE
的iframe即可<iframe src="https://maps.google.co.uk/maps?q=SW1A+2AA" width="300" height="250"></iframe>
答案 1 :(得分:0)
看看这个google maps api并考虑使用php动态构建网址。