轨迹查询与纠偏
GET
/api/v3/track/gettrack
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://yingyan.baidu.com/api/v3/track/gettrack?service_id&entity_name&ak=&sn='
响应示例响应示例
{
"status": 0,
"message": "成功",
"total": 10156,
"size": 100,
"distance": 70101.769271664,
"toll_distance": 0,
"start_point":
{
"longitude": 121.47756835641,
"latitude": 31.228864478309,
"loc_time": 1487210008
},
"end_point":
{
"longitude": 121.66034736775,
"latitude": 31.145494901873,
"loc_time": 1487260798
},
"points":
[
{
"loc_time": 1487210008,
"latitude": 31.228864478309,
"longitude": 121.47756835641,
"create_time": "2017-02-16 09:53:56",
"direction": 160,
"height": 5,
"key1": "value1",
"radius": 10,
"speed": 6.8,
"locate_mode": "GPS/北斗定位",
"transport_mode": "驾车"
},
{
"loc_time": 1487210013,
"latitude": 31.228900948179,
"longitude": 121.47727614458,
"create_time": "2017-02-16 09:53:56",
"direction": 0,
"height": 36,
"key1": "value1",
"radius": 10,
"speed": 0,
"locate_mode": "GPS/北斗定位",
"transport_mode": "停留"
},
...
{
"loc_time": 1487210503,
"latitude": 31.232230380323,
"longitude": 121.47848441484,
"create_time": "2017-02-16 10:02:09",
"direction": 228,
"height": 6,
"key1": "value1",
"radius": 5,
"speed": 1.87,
"locate_mode": "GPS/北斗定位",
"transport_mode": "停留"
}
}
]
请求参数
Query 参数
service_id
integer
必需
entity_name
string
必需
start_time
integer
开始时间
end_time
integer
可选
is_processed
string
可选
process_option
string
可选
supplement_mode
string
可选
supplement_content
string
可选
low_speed_threshold
number
可选
coord_type_output
string
可选
sort_type
string
可选
page_index
integer
可选
page_size
string
可选
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:53:20