gpt4 book ai didi

javascript - 为默认打开谷歌地图的所有移动设备创建一个链接

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:24:28 26 4
gpt4 key购买 nike

为所有打开带有营业地点的谷歌地图的移动设备创建一个链接?

<a href="geo:37.6894694,-121.000303">Google MAP</a> - 此链接转到该位置并重定向到移动谷歌应用程序,但没有标记公司地址。

<a href="http://maps.apple.com/maps?q=Business Address">Google MAP</a> - 此链接转到该位置,但不会重定向到谷歌应用程序,而是移动设备希望您选择要使用的内容。

我需要一个重定向到谷歌应用程序并标记谷歌公司地址的链接。

最佳答案

<a href="geo:37.6894694,-121.000303?q=37.6894694,-121.000303(The Name You Want To Show)">Google MAP</a>

使用 q 参数和 () 来显示标记名称

它适用于 Android 设备,但我不确定它是否适用于 iOS 设备。

阅读更多:

https://developers.google.com/maps/documentation/android-api/intents#overview

https://developer.android.com/guide/components/intents-common.html

enter image description here

关于javascript - 为默认打开谷歌地图的所有移动设备创建一个链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36057162/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com