fix: calculate jt808 daily mileage from metric endpoints
This commit is contained in:
@@ -344,11 +344,12 @@ Validation:
|
||||
### Daily Mileage
|
||||
|
||||
JT808 daily mileage uses the GPS total mileage reported in location additional
|
||||
information. The first valid sample of the local day is the baseline and the
|
||||
latest valid total mileage rewrites the same metric row.
|
||||
information. The local-day minimum and maximum GPS total mileage values rewrite
|
||||
the same metric row, so ordered streaming and historical replay use one
|
||||
calculation path.
|
||||
|
||||
```text
|
||||
dailyMileage = today.lastTotalMileage - today.firstTotalMileage
|
||||
dailyMileage = today.maxTotalMileage - today.minTotalMileage
|
||||
calculationMethod = JT808_TOTAL_MILEAGE_DIFF
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user