導航
const [startLngLat, endLngLat] = [[jd1, wd1], [jd2,wd2]];
const url = flag
? `http://uri.amap.com/navigation?from=${startLngLat[0]},${startLngLat[1]}&to=${endLngLat[0]},${endLngLat[1]}&mode=car&src=nyx_super`
: `http://api.map.baidu.com/direction?origin=${startLngLat[1]},${startLngLat[0]}&destination=${endLngLat[1]},${endLngLat[0]}®ion=中國&mode=driving&coord_type=gcj02&output=html&src=webapp.baidu.openAPIdemo`;
// flag 爲 true :高德導航,false:百度導航