高德地图的导航方式,不需要marke点就可以进行导航
- lng1 和 lat1 是自身所在的经纬度根据实际情况获取
- this.pointInfo.longitude 是要去的点位的经纬度
let lng1 = sessionStorage.getItem("lng");
let lat1 = sessionStorage.getItem("lat");
let url =
"http://uri.amap.com/navigation//uri.amap.com/navigation?from=" +
lng1 +
"," +
lat1 +
",我的位置&to=" +
this.pointInfo.longitude +
"," +
this.pointInfo.latitude +
"," +
this.pointInfo.name +
"&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0";
window.location.href = url;