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');
以下为高德的路径规划
在高德网页内,点击导航后,会申请打开手机内的高德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"