Community
Unassigned Driving
almost 3 years ago by Dave
We want to pull together a report for the % time a truck was driven with no driver logged in. I believe that we can use the trips API which will return all trips for a single vehicle. Is there another way of getting the data that does not involve multiple requests to the server?
almost 3 years ago by Shivaram GopalakrishnanAdmin
Hi Dave,
You could use the Fetch All routes endpoint (https://api.samsara.com/fleet/routes) which provides the you the driver and vehicle information in one call by specifying the startTime and endTime parameters.
Let us know if this works
Marked as answered by Shivaram Gopalakrishnan
ο»Ώ