移动端h5调起高德地图、百度地图实现路线及路况查询

//html
 <a href="https://uri.amap.com/marker?position=经度,纬度&name=所在的位置名称">高德地图</a>
 //js   location = "108.650958,33.919852"
  window.location.href ="https://uri.amap.com/marker?position=" + location +"&name=" + scenicName;
  
<a href="http://api.map.baidu.com/marker?location=纬度,经度&title=所在位置名称&content=所在位置的简介(可选)&output=html">百度地图</a>

你可能感兴趣的:(地图线路查询,前端)