get_trajectory
get_trajectoryRetrieve historical location trajectories for a specific tag within a given time range. Returns trajectory points with total count and pagination hints.
Instructions
【📊 查询】查询标签的历史位置轨迹(基于 location_data 表)。
参数:
tagCode: 标签编码(必填)
startTime: 开始时间(可选),格式 "2026-07-09 08:00:00"
endTime: 结束时间(可选)
limit: 最多返回点数,默认 500,最大 5000
返回: totalCount(匹配总数) + pointCount(实际返回) + 轨迹点列表
提示: 先 COUNT 再 LIMIT。若 totalCount > limit,说明有数据未返回,请缩小时间范围或调大 limit。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最多返回点数,默认500,最大5000 | |
| endTime | No | 结束时间,格式 "2026-07-09 18:00:00" | |
| tagCode | Yes | 标签编码,如 UWB001 | |
| startTime | No | 开始时间,格式 "2026-07-09 08:00:00" |