This article mainly introduces the implementation code of HTML5 page to directly call Baidu Map API to obtain the current location and direct navigation destination. Friends who need it can refer to it. I hope it can help everyone.
You can save the need to send the location information first, click OK and then exit the navigation, saving one step,
HTML5页面直接调用百度地图API,获取当前位置,直接导航目的地