curl --location -g --request GET 'https://api.map.baidu.com/logistics_direction/v1/truck?origin=22.673186,114.065699&destination=22.6721,114.068886&ak=&sn='
{
"status": 0,
"message": "string",
"result": {
"restriction": {
"type": "string",
"info": "string"
},
"total": 0,
"routesinfo_ext": "string",
"routes": {
"origin": {
"lng": 0,
"lat": 0
},
"destination": {
"lng": 0,
"lat": 0
},
"traffic_light_num": 0,
"unavoid_statistics": {
"height": 0,
"width": 0,
"weight": 0,
"plate": 0,
"road_to_open": 0,
"road_not_open": 0
},
"tag": "string",
"track_idx": 0,
"unavoid_polygons_idx": "string",
"distance": 0,
"duration": 0,
"toll": 0,
"toll_distance": 0,
"oil_cost": 0,
"steps": {
"leg_index": 0,
"direction": 0,
"distance": 0,
"duration": 0,
"adcodes": "string",
"road_name": "string",
"road_type": 0,
"toll_gate_name": "string",
"toll_gate_location": {
"lng": 0,
"lat": 0
},
"start_location": {
"lng": 0,
"lat": 0
},
"end_location": {
"lng": 0,
"lat": 0
},
"path": "string",
"traffic_condition": {
"status": 0,
"geo_cnt": 0,
"distance": 0
}
}
}
}
}
用户指定经验轨迹;lat,lng,timestamp;lat,lng,timestamp;lat,lng,timestamp ..... 轨迹点间英文分号分割 如无时间戳可设置为0,所有轨迹点个数<2000。坐标类型受参数coord_type约定 如果传递此参数,则必须采用post方式发送Http请求,header中content-type设置为application/x-www-form-urlencoded,并且所有参数放置在body中进行发送 注意:该功能为高级付费服务,需通过反馈平台联系工作人员开通