Check Truck and Coach Driver Hours (Vietnam 4-Hour Rule)
Check a driving log against Vietnam’s 4-hour continuous driving rule, rest stops, daily / weekly limits and NĐ 168/2024 fines, or plan driver changes.
Result
Press “Run” to see the result.
Send a driving log as log (intervals { start, end, status, driver } or events { time, status }), or as CSV (csv or a text body with start,end,status / time,status columns, e.g. exported from a journey-monitoring device). Times are Vietnam local time. The answer lists, per driver, every continuous-driving period, daily and weekly totals and each violation with the minute it started and the excess.
Rules by date: until 30/6/2026 the Road Traffic Order and Safety Law 36/2024 article 64 caps driving at 10 h a day, 48 h a week and 4 h continuous. From 1/7/2026 (Law 118/2025) only the 4-hour continuous limit stays in the traffic law; daily / weekly working time follows the Labour Code, checked here as driving + other work (12 h a day incl. overtime, 48 h a week; both overridable). A stop of at least 15 minutes (5 minutes for intra-provincial buses and taxis) resets the continuous counter, per service. Fines of Decree 168/2024: driver 3–5 million VND and 2 licence points, owner 4–6 million (individual) or 8–12 million (organisation).
action=plan with trip_hours (and optional start, drivers) returns how many drivers a trip needs and a schedule of driving blocks and stops. The log is processed in memory only; use pseudonymous driver ids. Reference only, not legal advice.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-driver-hours" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"service":"cargo","log":[{"start":"2026-08-03T05:00","end":"2026-08-03T09:20","status":"driving","driver":"D1"},{"start":"2026-08-03T09:20","end":"2026-08-03T09:40","status":"rest","driver":"D1"},{"start":"2026-08-03T09:40","end":"2026-08-03T12:00","status":"driving","driver":"D1"}]}'const res = await fetch('https://apibox.io.vn/v1/vn-driver-hours', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"service": "cargo",
"log": [
{
"start": "2026-08-03T05:00",
"end": "2026-08-03T09:20",
"status": "driving",
"driver": "D1"
},
{
"start": "2026-08-03T09:20",
"end": "2026-08-03T09:40",
"status": "rest",
"driver": "D1"
},
{
"start": "2026-08-03T09:40",
"end": "2026-08-03T12:00",
"status": "driving",
"driver": "D1"
}
]
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-driver-hours",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"service": "cargo", "log": [{"start": "2026-08-03T05:00", "end": "2026-08-03T09:20", "status": "driving", "driver": "D1"}, {"start": "2026-08-03T09:20", "end": "2026-08-03T09:40", "status": "rest", "driver": "D1"}, {"start": "2026-08-03T09:40", "end": "2026-08-03T12:00", "status": "driving", "driver": "D1"}]},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-driver-hours');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"service":"cargo","log":[{"start":"2026-08-03T05:00","end":"2026-08-03T09:20","status":"driving","driver":"D1"},{"start":"2026-08-03T09:20","end":"2026-08-03T09:40","status":"rest","driver":"D1"},{"start":"2026-08-03T09:40","end":"2026-08-03T12:00","status":"driving","driver":"D1"}]}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Is the 10-hour daily limit still in force?
Not in the traffic law from 1/7/2026: Law 118/2025 keeps only the 4-hour continuous limit and refers daily / weekly time to the Labour Code. Logs before that date are checked against 10 h / 48 h.
How long must the break be?
At least 15 minutes after 4 hours of continuous driving (fixed-route, contract, tourist, cargo, inter-provincial bus) or 5 minutes for intra-provincial buses and taxis; shorter stops do not reset the counter.
Does traffic-jam time count?
Only time with the vehicle moving counts as driving under the calculation method; mark standing time as rest or work in your log.