Skip to main content

Hours of Service API

Contents

Overview

The Hours of Service API allows you to continually send updated HOS information for individual drivers directly from an ELD into the Trip Management service. This ensures that Trip Management calculates and updates trip information, including rest stops, to ensure drivers remain in compliance with HOS regulations.

What can you do with the HOS API?

The HOS API allows you to seamlessly integrate real-time HOS data from an ELD into Trip Management. This ensures trip planning and recalculations always use the latest HOS status for each driver.

  • Send HOS updates from an ELD to Trip Management as often as every 15 minutes.
  • Update HOS data for multiple drivers simultaneously using individual driverId values.
  • Trip Management automatically stores and applies the most recent HOS data for accurate trip calculations.

Getting started

To use the API, you must be licensed for Trip Management and have an API key.

Authentication

Every request needs to be authenticated by adding the API key to the HTTP Authorization header.

POST /api/v1/drivers/hos

Full URL: https://hos-availability-api.trimblemaps.com/api/v1/drivers/hos

Request body

{
   "hos":{
      "driverId":"string",
      "driverName":"string",
      "ruleType":0,
      "alternativeRuleType":0,
      "cycleTimeGains":[
         0
      ],
      "hosRemainingTimes":{
         "drivingTimeUntilBreak":0,
         "drivingInDay":0,
         "onOffDutyInDay":0,
         "onDutyInWeek":0,
         "canadaWindowOnDutyTime":0,
         "canadaTimeUntilFullDayBreak":0,
         "drivingInWeek":0,
         "onDutyInDay":0,
         "europeOnDutyInDay":0,
         "consecutiveDriving":0,
         "drivingFortnightly":0,
         "dutyStatus":0,
         "lastCycleResetDateTime":"2024-09-10T20:13:12.058Z",
         "last24HourBreakDateTime":"2024-09-10T20:13:12.058Z"
      },
      "isOnDuty":true,
      "last24HourBreak":"2024-09-10T20:13:12.058Z",
      "lastCycleReset":"2024-09-10T20:13:12.058Z"
   },
   "references":{
      "integrationPartner":"string",
      "sourceReferenceId":"string"
   },
   "publishedOn":"2024-09-10T20:13:12.058Z",
   "lastRefresh":"2024-09-10T20:13:12.058Z"
}

Request body fields

Note: All time values are in milliseconds unless otherwise specified.

hos

Field Type Description Sample Value
driverId string Unique driver identifier in the source and TMS system. JSmith
driverName string Driver name from the source and TMS system. John Smith
ruleType integer or string Primary HOS rule type for the driver.
Possible values:
0 or "USFed607LH"
1 or "USFed708LH"
2 or "CanadaCycle1"
3 or "CanadaCycle2"
4 or "California808"
5 or "Texas707"
6 or "USShortHaul"
7 or "Europe"
0
alternativeRuleType integer or string Secondary HOS rule type for the driver. Same values as ruleType. 1
cycleTimeGains array of integer Cycle time gains for prior days of on-duty time (US HOS cycles).
For 60-hour/7-day, provide 7 elements; for 70-hour/8-day, provide 8 elements.
[40000000, 35000000, 12900000, 0, 50400000, 0, 0]
hosRemainingTimes object Remaining HOS times for the driver. See below.
isOnDuty boolean Indicates if the driver is currently on duty.
Deprecated: Use dutyStatus.
true
last24HourBreak string (ISO 8601) Deprecated: Will be removed in V2.
lastCycleReset string (ISO 8601) Deprecated: Will be removed in V2.

hos.hosRemainingTimes

Field Type Description Sample Value
drivingTimeUntilBreak integer Remaining drive time before a 30-minute break is required (US HOS 8-hour limit). 28800000
drivingInDay integer Remaining driving time in the day (US HOS 11-hour limit). 39600000
onDutyInDay integer Remaining on-duty time in the day (US HOS 14-hour limit). 50400000
onOffDutyInDay integer Deprecated: Use onDutyInDay.
onDutyInWeek integer Remaining on-duty time in the week (US HOS 60/70-hour limit). 252000000
canadaWindowOnDutyTime integer Remaining on-duty time in the day (Canada HOS 14-hour limit). 50400000
canadaTimeUntilFullDayBreak integer Remaining time until a full day break is needed (Canada HOS Cycle 2). 1210000000
drivingInWeek integer Remaining driving time in the week (Europe HOS 56-hour limit). 201600000
consecutiveDriving integer Remaining consecutive driving time in the day (Europe HOS 4.5-hour limit). 16200000
drivingFortnightly integer Remaining bi-weekly driving time (Europe HOS 90-hour limit). 324000000
europeOnDutyInDay integer Remaining on-duty time in the day (Europe HOS). 16500000
dutyStatus integer Current duty status:
0 = Unknown
1 = OnDuty
2 = OffDuty
3 = Driving
4 = Resting
5 = SleepBerth
6 = YardMove
7 = PersonalConveyance
3
lastCycleResetDateTime string (ISO 8601) Last cycle reset time (Canada HOS). 2024-09-10T18:28:24.920Z
last24HourBreakDateTime string (ISO 8601) Last 24-hour break date/time (Canada HOS). 2024-09-10T18:28:24.920Z

references

Field Type Description Sample Value
integrationPartner string Integration partner name of the source system. Samsara
sourceReferenceId string Reference ID of the source system. 3475628

Top-level fields

Field Type Description Sample Value
publishedOn string (ISO 8601) Date/time the last update was published. 2024-09-10T18:28:24.920Z
lastRefresh string (ISO 8601) Date/time of the last data refresh. 2024-09-10T18:28:24.920Z
Last updated January 16, 2026.
API Endpoint:

Contents