使用表格数据,在谷歌地图上显示位置

使用表格数据,在谷歌地图上显示位置

问题描述:

On my page I have a number of users showing, each one has a postcode.

Is it possible to somehow show an iframe of that location on Google maps using PHP? I've tried googling and stack overflow for an answer and this is the best I've found only it's a link as opposed to embedding it on the page?

How to convert an address into a Google Maps Link (NOT MAP)

在我的页面上,我有许多用户显示,每个用户都有一个邮政编码。 p> \ n

是否有可能以某种方式使用PHP在Google地图上显示该位置的iframe? 我已经尝试使用谷歌搜索和堆栈溢出来获得答案,这是最好的我发现它只是一个链接而不是将其嵌入页面? p>

如何将地址转换为Google地图链接(非地图) p> div>

No need for PHP. Just create an iframe pointing to https://maps.google.co.uk/maps?q=POSTCODE

<iframe src="https://maps.google.co.uk/maps?q=SW1A+2AA" width="300" height="250"></iframe>

Take a look at this google maps api and consider using php to dynamically build the url.