驾驶行为分析
GET
/api/v3/analysis/drivingbehavior
1.
2.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://yingyan.baidu.com/api/v3/analysis/drivingbehavior?service_id=&entity_name=car_plate&start_time=1464105600&end_time=1464191940&ak=&sn='
响应示例响应示例
{
status: 0,
message: "成功",
distance: 79707.90026776,
duration: 38441,
average_speed: 7.4646455858052,
max_speed: 56.7,
start_point: {
longitude: 113.2075,
latitude: 23.40675,
coord_type: "bd09ll",
loc_time: 1464134680,
address: "新景豪苑内,新凤凰酒店-休闲会所附近9米"
},
end_point: {
longitude: 113.208055,
latitude: 23.406561,
coord_type: "bd09ll",
loc_time: 1464173121,
address: "盛业行东南49米"
},
speeding_num: 2,
harsh_acceleration_num: 1,
harsh_breaking_num: 1,
harsh_steering_num: 1,
speeding: [
{
speeding_distance: 59.189285867195,
speeding_points: [
{
longitude: 113.20710875909,
latitude: 23.39908060312,
coord_type: "bd09ll",
loc_time: 1464138828,
actual_speed: 87.5,
limit_speed: 60
},
{
longitude: 113.20697265531,
latitude: 23.399597906861,
coord_type: "bd09ll",
loc_time: 1464138843,
actual_speed: 108.9,
limit_speed: 80
}
]
},
{
speeding_distance: 989.53701539415,
speeding_points: [
{
longitude: 113.21499929275,
latitude: 23.413317284437,
coord_type: "bd09ll",
loc_time: 1464141367,
actual_speed: 32.4,
limit_speed: 15
},
{
longitude: 113.21692508544,
latitude: 23.408488134541,
coord_type: "bd09ll",
loc_time: 1464141794,
actual_speed: 16.2,
limit_speed: 15
}
]
}
],
harsh_acceleration: [
{
longitude: 113.21725316042,
latitude: 23.412958154234,
coord_type: "bd09ll",
loc_time: 1464143029,
acceleration: 2.75,
initial_speed: 0,
end_speed: 19.8
}
],
harsh_breaking: [
{
longitude: 113.2149819651,
latitude: 23.411143610036,
coord_type: "bd09ll",
loc_time: 1464141265,
acceleration: -2.25,
initial_speed: 34.2,
end_speed: 26.1
}
],
harsh_steering: [
{
longitude: 113.2399844062,
latitude: 23.415216724914,
coord_type: "bd09ll",
loc_time: 1464158589,
centripetal_acceleration: 5.0324216823668,
turn_type: "left",
speed: 36.44
}
]
}
请求参数
Query 参数
service_id
integer
必需
entity_name
string
必需
示例值:
car_plate
start_time
integer
开始时间
示例值:
1464105600
end_time
integer
结束时间
示例值:
1464191940
speeding_threshold
number
可选
示例值:
80
harsh_acceleration_threshold
number
可选
harsh_breaking_threshold
number
可选
harsh_steering_threshold
number
可选
process_option
string
可选
coord_type_output
string
可选
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:53:28