货车路线规划
GET
/logistics_direction/v1/truck
请求示例请求示例
Shell
JavaScript
Java
Swift
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
}
}
}
}
}
请求参数
Query 参数
origin
string
必需
示例值:
22.673186,114.065699
destination
string
必需
示例值:
22.6721,114.068886
height
number
可选
示例值:
1.8
width
number
可选
示例值:
1.9
weight
number
可选
示例值:
2.5
length
number
可选
示例值:
4.2
axle_weight
number
可选
示例值:
2
axle_count
integer
可选
示例值:
2
is_trailer
integer
可选
示例值:
0
plate_province
string
可选
plate_number
string
可选
plate_color
integer
可选
示例值:
0
waypoints
string
可选
coord_type
string
可选
ret_coordtype
string
可选
departure_time
array[string]
可选
示例值:
[]
tactics
integer
可选
way_tactics
string
可选
alternatives
integer
可选
user_mark
string
可选
displacement
integer
可选
vehicle_usages
string
可选
power_type
integer
可选
truck_type
integer
可选
emission_limit
integer
可选
load_weight
integer
可选
multi
integer
可选
avoid_type
integer
可选
experience_track
string
可选
用户指定经验轨迹;lat,lng,timestamp;lat,lng,timestamp;lat,lng,timestamp ..... 轨迹点间英文分号分割 如无时间戳可设置为0,所有轨迹点个数<2000。坐标类型受参数coord_type约定 如果传递此参数,则必须采用post方式发送Http请求,header中content-type设置为application/x-www-form-urlencoded,并且所有参数放置在body中进行发送 注意:该功能为高级付费服务,需通过反馈平台联系工作人员开通
navigable
integer
可选
disable_ferry
integer
可选
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:01:41