乘用车ETC费用
GET
/api/v3/toll/car
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://yingyan.baidu.com/api/v3/toll/car?service_id=&entity_name=&start_time=1620119260&end_time=1620121300&ak='
响应示 例响应示例
{
status: 0,
message: "成功",
toll: 231.368,
toll_section_num: 1,
toll_sections: [{
toll: 231.368,
toll_type: "TOLL_TYPE_ETC",
road_grade: "高速路",
road_name: "连霍高速",
start_toll_station: {
name: "河南省洛阳市孟津县S243(洛吉快速路)",
coord: {
longitude: 112.47137,
latitude: 34.77311
}
},
end_toll_station: {
name: "河南省郑州市管城回族区G4(京港澳高速)",
coord: {
longitude: 113.81392,
latitude: 34.70144
}
}
}]
}
请求参数
Query 参数
service_id
integer
必需
entity_name
string
必需
start_time
integer
必需
示例值:
1620119260
end_time
integer
必需
示例值:
1620121300
coord_type_output
string
可选
ak
string
必需
默认值:
{{ak}}
返回响应
修改于 2022-08-22 02:53:43