curl --location -g --request GET 'https://api.map.baidu.com/direction/v2/driving?origin=40.01116,116.339303&destination=39.936404,116.452562&ak=&sn='
{
"status": "string",
"message": "string",
"type": 0,
"result": {
"restriction": "string",
"duration": 0,
"total": 0,
"routes": {
"origin": {
"lng": 0,
"lat": 0
},
"destination": {
"lng": 0,
"lat": 0
},
"tag": "string",
"route_id": "string",
"distance": 0,
"duration": 0,
"ext_duration": 0,
"suggest_departure_time": 0,
"taxi_fee": 0,
"toll": 0,
"toll_distance": 0,
"steps": {
"leg_index": 0,
"direction": 0,
"distance": 0,
"road_name": "string",
"road_type": "string",
"toll": 0,
"toll_distance": 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",
"adcodes": "string",
"traffic_condition": {
"status": 0,
"geo_cnt": 0,
"distance": 0
}
}
}
},
"end_walkinfo": {
"distance": 0,
"path": "string"
},
"start_walkinfo": {
"distance": 0,
"path": "string"
}
}