this.urlBaiduMap =
'baidumap://map/direction?origin=name:' + this.location.address + '|latlng:' + this.location.latitude +
',' + this.location.longitude +
'&destination=name:'+encodeURIComponent('北四环东路')+'|latlng:39.98871,116.43234|addr:'+encodeURIComponent('北京市东城区东长安街')+'|&coord_type=gcj02&mode=driving&src=ios.baidu.openAPIdemo';
this.urlBaiduMap = 'baidumap://map/direction?origin=name:A|latlng:39.98871,116.43234&destination=name:B|latlng:40.007623,116.360582&coord_type=gcj02&mode=driving&src=com.gsafety.mobile.ptt';
Mr董 (作者)
我看官网上是这么写的起始点都可以传name,origin=name:A|latlng:39.98871,116.43234&destination=name:B|latlng:40.007623,116.36058
这么写跳转不过去,写成下面的方式可以跳转,请问哪里不对
origin=39.98871,116.43234&destination=40.007623,116.36058
2022-05-17 17:55