2 lines
422 B
JavaScript
2 lines
422 B
JavaScript
function e(e,o,n){const t=`amapuri://route/plan/?dlat=${e}&dlon=${o}&dname=${encodeURIComponent(n)}&dev=0&t=0`,a=`https://uri.amap.com/navigation?to=${o},${e},${encodeURIComponent(n)}&mode=car&src=odf`,d=Date.now(),m=document.createElement("iframe");m.style.display="none",m.src=t,document.body.appendChild(m),setTimeout((()=>{document.body.removeChild(m),Date.now()-d<2500&&window.open(a,"_blank")}),2e3)}export{e as o};
|