我可以在api.map.baidu和:type=wgs84上计算方向(json)
如何在https://map.baidu.com/上形成相似的url在地图上显示相同的方向

我想在我的应用程序中生成url,它在map.baidu.com,上加载方向,但是很难猜测url,因为我找到的网站和文档都在中文上。
发布于 2019-02-05 20:38:22
通过尝试和错误,我能够使用以下模式将其发送到工作:
http://api.map.baidu.com/direction?origin=latlng:39.940488,116.355425|name:origin&destination=latlng:39.988710,116.432340|name:destination&mode=driving®ion=none&output=html它与你所拥有的不同之处包括:
latlng:在每组坐标前加上前缀|name:(point name)附加到每组坐标后,如果不在这里放置一些东西,它就无法工作。output=html参数发布于 2020-07-10 09:21:35
以下是百度地图https://lbsyun.baidu.com/index.php?title=uri/api/web#service-page-anchor5的API文档
2.2.3巴士、驾驶及行走路线规划
服务地址
http://api.map.baidu.com/direction //PC&Webapp service address示例
http://api.map.baidu.com/direction?origin=latlng:34.264642646862,108.95108518068|name:My home&destination=Great Wild Goose Pagoda&mode=driving®ion=Xi'an&output=html&src=webapp.baidu.openAPIdemo
//Call up Baidu PC or Web map to show the driving directions of "Xi'an" from (lat: 34.264642646862, lng: 108.95108518068) "My home" to "Dayan Tower".https://stackoverflow.com/questions/54425221
复制相似问题