航线任务轨迹获取
GET
/task/api/v1.0/projects/{project_uuid}/flight-tasks/track
请求参数
Path 参数
project_uuid
string
项目uuid
Query 参数
task_uuid
string
航线任务uuid
Header 参数
X-Organization-Key
string
组织密钥
示例值:
{{organization_key}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/task/api/v1.0/projects//flight-tasks/track?task_uuid' \
--header 'X-Organization-Key: {{organization_key}}' \
--header 'X-Organization-Key;'
返回响应
🟢200成功
application/json
Body
body
object
必需
code
integer
必需
data
object
必需
message
string
必需
headers
object
必需
size
integer
必需
status
integer
必需
示例
{
"body": {
"code": 0,
"data": {
"completed_at": null,
"name": "新建计划",
"run_at": "2024-06-18T13:13:37.27706Z",
"status": 2,
"track": {
"drone_sn": "DRONESN",
"flight_distance": 0,
"flight_duration": 0,
"points": [
{
"height": 26.603854370117187,
"latitude": 22.9077271219904,
"longitude": 113.707357997219,
"timestamp": 1718716429000
},
{
"height": 30.50385437011719,
"latitude": 22.907726688936652,
"longitude": 113.7073580318538,
"timestamp": 1718716431000
}
],
"track_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"wayline_uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"message": "success"
},
"headers": {},
"size": 6016,
"status": 200
}
🟠404404
修改于 2024-11-07 12:25:01