web应用内打开网页版高德地图导航

2019-08-26  本文已影响0人  骑着小猪看大海

移动终端的web

以下两种为高德的网页跳转导航

window.open('http://m.amap.com/navigation/carmap/saddr=116.379028,39.865042,起点&daddr=116.427281,39.903719,终点&sort=dist');

https://m.amap.com/share/index/lnglat=120.72713,31.32147&name=%E8%8B%8F%E5%B7%9E%E5%88%9B%E6%84%8F%E4%BA%A7%E4%B8%9A%E5%9B%AD%E5%95%8A

以下为高德的路径规划

驾车规划 - 高德地图

在高德网页内,点击导航后,会申请打开手机内的高德APP,如果没有会前往下载。但是实验发现,在手机无论有没有都会弹出下载高德应用的引导页。体验不好。

网页版的web

https://gaode.com/dir?from[name]=起点&from[lnglat]=116.379028,39.865042&to[name]=终点&to[lnglat]=116.427281,39.903719&policy=1&type=car

百度导航

window.location.href = "http://api.map.baidu.com/marker?location=" +39.903719+ "," +116.427281+ "&title=" + 'ddddd' + "&content=" +'ssss'+ "&output=html"

上一篇下一篇

猜你喜欢

热点阅读