最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Create a link for all mobile devices that opens google maps by default - Stack Overflow

programmeradmin3浏览0评论

Create a link for all mobile devices that opens google maps with business location?

<a href="geo:37.6894694,-121.000303">Google MAP</a> - This link goes to the location and redirect to the mobile google app, but no mark for the business address.

<a href=" Address">Google MAP</a> - This link goes to the location, but not redirecting to google app, instead mobile wants you to choose what to use.

I need a link that redirect to google app and mark the google Business address.

Create a link for all mobile devices that opens google maps with business location?

<a href="geo:37.6894694,-121.000303">Google MAP</a> - This link goes to the location and redirect to the mobile google app, but no mark for the business address.

<a href="http://maps.apple./maps?q=Business Address">Google MAP</a> - This link goes to the location, but not redirecting to google app, instead mobile wants you to choose what to use.

I need a link that redirect to google app and mark the google Business address.

Share edited Jul 6, 2017 at 21:03 xomena 32.2k6 gold badges96 silver badges125 bronze badges asked Mar 17, 2016 at 10:00 JowsJows 8972 gold badges11 silver badges21 bronze badges
Add a ment  | 

2 Answers 2

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

Use the q parameter with () for showing the marker name

It works with android devices, but I'm not sure it works with iOS devices.

Read more:

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

https://developer.android./guide/ponents/intents-mon.html

In May 2017 Google launched the Google Maps URLs. This API allows to create universal cross-platform URLs that you can use on web, Android or iOS.

For example you can open native maps app on Android passing the following URLs into intents

https://www.google./maps/search/?api=1&query=centurylink+field

https://www.google./maps/search/?api=1&query=47.5951518,-122.3316393&query_place_id=ChIJKxjxuaNqkFQR3CK6O1HNNqY

For further details, please refer to the documentation:

https://developers.google./maps/documentation/urls/guide

发布评论

评论列表(0)

  1. 暂无评论