api-docs
api-docs copied to clipboard
Driver HOS daily logs
I'm trying to pull a driver's daily log information from the API.
Currently I'm having to perform two requests to get at the level of detail I'm trying to pull.
Request 1) is to /fleet/hos_logs to get the detail log information for the driver. What I'm really interested in is knowing for a day the drivers ON_DUTY, OFF_DUTY, DRIVING, and SLEEPER time summary. Request 2) is the /fleet/drivers/[driver_id]/hos_daily_logs to get the Miles driven on a day.
A few options I can think of that would resolve multiple requests being made:
- add ON_DUTY, OFF_DUTY, DRIVING, SLEEPER time summaries to "hos_daily_logs"
- add a "detail" section to "hos_daily_logs" and include the same level of detail as found in /fleet/hos_logs
- add mileage info to /fleet/hos_logs