getOutdoorsTracksDetail(data: GetOutdoorsTracksDetailParams)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Retrieve device track points by time range. The time span between start and end must be ≤ 7 days, and up to 1000 points are returned per request. If there are more than 1000 points in the period, the first 1000 points and the start time for the next query are returned. To improve response speed and avoid timeouts due to excessive points, shorten each request’s time window and split the track into segments for stitching.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<GetOutdoorsTracksDetailResult>
GetOutdoorsTracksDetailResult (see the type definition and minituya return table for field meanings)
Referenced Types
type
GetOutdoorsTracksDetailResult| Property | Type | Description |
|---|---|---|
deviceId | string | Device ID |
| Track point list | ||
startTime | number | Start timestamp for the next-page query |
hasMore | boolean | Whether there is a next page |