Dashboard
Compared Distance
Get daily comparison between planned and actual GPS distances.
GET/api/v1/workspace/dashboard/compared-distance
Query Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
fromTime | Required | long | Start of date range (Unix ms) |
toTime | Required | long | End of date range (Unix ms) |
Example
Request
curl -X GET \
"https://live.fleetwork.vn/api/v1/workspace/dashboard/compared-distance?fromTime=1713139200000&toTime=1713398400000" \
-H "API-KEY: <your-key>"Response
{
"code": "OK",
"message": null,
"data": {
"dailyDistances": [
{
"date": "2026-04-15T00:00:00",
"plannedDistance": 48.2,
"actualDistance": 51.7,
"variance": 3.5,
"variancePercentage": 7.26
},
{
"date": "2026-04-16T00:00:00",
"plannedDistance": 35.0,
"actualDistance": 33.1,
"variance": -1.9,
"variancePercentage": -5.43
}
]
}
}