1. 程式人生 > >h5喚起地圖導航

h5喚起地圖導航

output ive coord 加載 沒有 https ddr gui 多參數

在H5頁面中跳轉到地圖App,或者在本地App中加載的H5頁面跳轉到地圖App,喚起App進行導航;

1、騰訊地圖:

調用方式: http://apis.map.qq.com/uri/v1/marker?marker=coord:lat,lng;addr:address

其中lat、lng、address分別為經緯度和詳細地址三個參數,更多參數介紹可在騰訊地圖api找到:https://lbs.qq.com/uri_v1/guide.html

當用戶手機未安裝騰訊地圖APP時,可通過瀏覽器調起騰訊地圖下載頁,為用戶提供下載,實現體驗閉環;

2、高德地圖:

調用方式: http://uri.amap.com/marker?position=lng,lat&name=address&coordinate=gaode&callnative=1

其中lat、lng、address分別為經緯度和詳細地址三個參數,其中經緯度為必填參數,註意區別騰訊地圖,此兩者調用方式中經度和緯度的位置是相反的,高德地圖URI API詳細參數及說明可在高德開放平臺找到:https://lbs.amap.com/api/uri-api/gettingstarted

3、百度地圖:

調用方式:http://api.map.baidu.com/marker?location=緯度,經度&title=所在位置名稱&content=所在位置的簡介&output=html

詳細參數可在 http://lbsyun.baidu.com/index.php?title=uri/api/web#service-page-anchor2 找到

蘋果:點擊導航按鈕後進入百度地圖app,如果手機沒有安裝的話,就跳轉到AppStore 安裝

https://blog.csdn.net/Delegate_M/article/details/51210158

h5喚起地圖導航