是否可以在谷歌地图中更改地方卡的内容

时间:2016-07-13 07:57:18

标签: javascript ruby-on-rails google-maps

我使用iframe使用经度和纬度显示谷歌地图。 它使用包含经度和纬度的地方卡显示地图。 有没有办法在地方卡中获取地址而不是经度和纬度?

<iframe id="mapframe" frameborder="0" src="https://www.google.com/maps/embed/v1/place?q=latitude,longitude&key=Google map API key" allowfullscreen></iframe>

2 个答案:

答案 0 :(得分:0)

我认为你可以使用:(1个无限循环的例子)

?q=1+infinite+loop+cupertino+ca+95014

最好提供您所知道的一切,如街道,拉链和城镇。那么这应该可以正常工作

答案 1 :(得分:0)

Google Maps Embed API

如果您使用地址作为查询,我可以调查,以下是结果图:

使用坐标作为查询的嵌入式API

enter image description here

使用Address作为查询的嵌入式API enter image description here

希望这有帮助!

相关问题