For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GithubSign up
DocsCouriersShippersForwardersTrackersAppAPI ReferenceSDKsFAQ
DocsCouriersShippersForwardersTrackersAppAPI ReferenceSDKsFAQ
  • API Reference
          • GETLast seen
          • GETData points
          • GETLast seen (public)
          • GETData points (public)
LogoLogo
GithubSign up
API ReferenceTrackingTimeseriesTask Group by Driver

Last seen

GET
/tracking/timeseries/task_group_by_driver/last_seen/v1
GET
/tracking/timeseries/task_group_by_driver/last_seen/v1
1import { ChrtClient } from "@chrt-inc/typescript-sdk";
2
3async function main() {
4 const client = new ChrtClient({
5 token: "YOUR_TOKEN_HERE",
6 });
7 await client.tracking.timeseries.taskGroupByDriver.lastSeenV1({
8 task_group_id: "task_group_id",
9 });
10}
11main();
1{
2 "schema_version": 1,
3 "timestamp": "2024-01-15T09:30:00Z",
4 "metadata": {
5 "task_group_id": "tg-987654321",
6 "driver_id": "drv-123456789",
7 "outlier": true,
8 "outlier_labeller": "movingpandas",
9 "pytest": true
10 },
11 "location": {
12 "type": "Feature",
13 "geometry": {
14 "type": "GeometryCollection",
15 "geometries": [
16 {
17 "type": "LineString",
18 "coordinates": [
19 [
20 -122.4194,
21 37.7749
22 ],
23 [
24 -122.418,
25 37.7755
26 ]
27 ]
28 }
29 ]
30 },
31 "bbox": [
32 -122.42,
33 37.77,
34 -122.41,
35 37.78
36 ],
37 "properties": {
38 "address": "123 Market St, San Francisco, CA 94103",
39 "name": "Driver Last Seen Location"
40 },
41 "id": 101
42 },
43 "_id": "63c9f1a2e4b0f5a1d2c3e4f5"
44}

Returns the most recent driver location data point for a task group. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (TaskGroupByDriverDataPoint1 | None)

Was this page helpful?
Previous

Data points

Next
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

task_group_idstringRequired

Response

Successful Response
schema_versioninteger
timestampdatetime
metadataobject
locationobject

GeoJSON Feature with typed properties for locations

The geometry field is strongly typed as Geometry (union of all geometry types) but remains optional to match the base Feature class specification. To ensure geometry is always present, validate it at runtime or make it required.

_idstring

Errors

422
Task Group by Driver Last Seen V1request Unprocessable Entity Error