Update mileage
Once a vehicle is declared, the distances of all trips are aggregated to calculate the total analyzed distance.
If the vehicle has already been driven before it has been registered on the platform, there will be an offset between the vehicle odometer and the total analyzed distance (computed by DriveQuant services).
If you find an offset between the vehicle's odometer and the total analyzed distance, you can set vehicle mileage.
The vehicle mileage value is updated :
Every time a trip is analyzed.
Each time the odometer update API is used.
Admin API Key
Vehicle odometer reading in kilometer
OK
Distance analysed by the app
Creation date of the vehicle
2020-01-10T10:00:00.125+0200Total distance travelled by the vehicle
offset between analysed and total distance
Bad Request
Unauthorized
Not Found
PUT /v3/drivekit/admin/vehicles/{vehicleId}/distance HTTP/1.1
Host: service.drivequant.com
DriveKit-Admin-API-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"distance": 1
}{
"analyzedDistance": 4589,
"creationDate": "2020-01-10T10:00:00.125+0200",
"distance": 10052,
"offsetDistance": 5463
}Last updated
Was this helpful?

