使用“a href”位置打开Goog le地图

问题描述 投票:1回答:1

在olx.in中,您可以浏览广告并点击广告位置。如果有人点击一个广告位置,Google地图将在当前标签的小屏幕中打开,在智能手机中,Google地图应用将会打开。这背后的逻辑是什么?

如何在点击广告位置时在Google地图中显示该位置?

在OLX.in中,用户必须在发布广告时为其广告选择位置。此位置可在Google地图中查看,而其他人则可浏览广告。因此,广告的所有者无需直接在“a href”中嵌入Google地图位置代码。

如何在点击广告位置时在当前标签中打开Goog​​le地图窗口,例如Olx.in?

php html html5 google-maps web
1个回答
2
投票

网址:

https://www.google.fr/maps/place/YOUR+ADRESSE + HERE

示例:

<a 
href="https://www.google.fr/maps/place/7+Impasse+de+l'Épi,+84000+Avignon" > adresse  to .....</a>
© www.soinside.com 2019 - 2024. All rights reserved.