createjob接口创建任务
GET
/api/v3/frequentroute/createjob
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://yingyan.baidu.com/api/v3/frequentroute/createjob?service_id=&entity_name=&ak=&sn='
响应示例响应示例
{
"status": 0,
"message": "OK",
"data": {
"total": 2,
"routes": [
{
"points": [
{
"longitude": 113.815534,
"latitude": 22.729928,
"loc_time": 1585699998,
"direction": 247,
"speed": 1.73
},
{
"longitude": 113.815469,
"latitude": 22.729904,
"loc_time": 1585700013,
"direction": 67,
"height": 28.0,
"speed": 6.84
},
…
{
"longitude": 113.913771,
"latitude": 22.794525,
"loc_time": 1585701885,
"direction": 123,
"height": 1.0,
"speed": 5.63
},
{
"longitude": 113.91447,
"latitude": 22.794097,
"loc_time": 1585701940,
"direction": 123,
"height": 2.0,
"speed": 5.63
}
],
"distance": 18082.59,
"average_speed": 50.89,
"frequency": 0.25,
"duration": 1942,
"start_time_range": "7:8:51,13:32:52",
"end_time_range": "7:37:14,14:15:50",
"start_point": {
"longitude": 113.815534,
"latitude": 22.729928
},
"end_point": {
"longitude": 113.91447,
"latitude": 22.794097
}
},
{
"points": [
{
"longitude": 113.914526,
"latitude": 22.794701,
"loc_time": 1585736279,
"direction": 308,
"speed": 5.44
},
{
"longitude": 113.914178,
"latitude": 22.794957,
"loc_time": 1585736299,
"direction": 220,
"height": 9.0,
"speed": 16.55
},
…
{
"longitude": 113.815974,
"latitude": 22.730096,
"loc_time": 1585738602,
"direction": 247,
"height": 12.0,
"speed": 2.97
},
{
"longitude": 113.815601,
"latitude": 22.729954,
"loc_time": 1585738683,
"direction": 247,
"speed": 2.97
}
],
"distance": 20430.13,
"average_speed": 49.84,
"frequency": 0.23,
"duration": 2404,
"start_time_range": "17:50:22,19:9:12",
"end_time_range": "18:40:21,19:41:33",
"start_point": {
"longitude": 113.914526,
"latitude": 22.794701
},
"end_point": {
"longitude": 113.815601,
"latitude": 22.729954
}
}
]
}
}
请求参数
Query 参数
service_id
integer
必需
entity_name
integer
必需
start_time
integer
可选
示例值:
1585670400
end_time
string
可选
示例值:
1588176000
time_range
string
可选
示例值:
240
is_processed
string
可选
示例值:
1
process_option
string
可选
示例值:
need_denoise=1,need_vacuate=1,need_mapmatch=1,radius_threshold=100,transport_mode=driving
supplement_mode
string
可选
示例值:
driving
coord_type_output
string
可选
示例值:
bd09ll
page_size
string
可选
示例值:
5000
page_index
string
可选
示例值:
1
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:53:33