简体   繁体   English

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

[英]Using table data, show location on google maps

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? 是否可以使用PHP以某种方式在Google地图上显示该位置的iframe? 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) 如何将地址转换为Google Maps Link(NOT MAP)

No need for PHP. 无需PHP。 Just create an iframe pointing to https://maps.google.co.uk/maps?q=POSTCODE 只需创建一个指向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>

看看这个Google Maps api并考虑使用php动态构建URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM