Community
Driver-Assignments Endpoint Data Returned Question
Hello,
I am using PowerShell to connect to the Driver-Assignments endpoint. I export the data to a CSV file, which we then use to automatically upload to our local databases. We use this format for 5 - 10 different API calls, but I have an issue with this specific end point.
If multiple drivers have driven the same asset, the drivers are listed in a single cell, versus being listed as new rows for the same asset ID. Is there another way to pull this information? The way the data comes back currently is unusable in our databases. I need the data to be returned in a way that shows a single asset ID and then a single driver ID.
Do the document type IDs need to be persisted when creating a document?
I'm creating a document using the "Create Document" endpoint "fleet/documents". The documentation states that a UUID is required for creating the document, but it's unclear as to whether or not that UUID should persist.
List of error codes and definition
Can you please share a list of "possible" error codes?
Show the real time position of some vehicle in a map
Hey there. I'm new with Samsara, I was wondering if it's possible that we can show the real-time position of some vehicle on a map.
Beside, if it's possible to use the Samsara's map
Finally, if there is an API to do this.
How precise is the odometer reading coming from the legacy locations endpoint?
Does the odometer reading returned from the legacy locations endpoint include fractional mileage? For example, it returns meters, and when I convert to miles using division by 1609.344 and then use basic rounding (from midpoint), sometimes I don't get the result I expect (i.e. the mileage reading can round down when I expect it to round up).
Driver Duty Status / Engine Status
We are working on Driver Duty Status project in C. H. Robinson. We need to know the status of Driver / Engine on specific time. Let’s say, if I want to know the status of Driver at 9:25 AM on 17-Sept-2020 so I should get one of the statuses from "offDuty""sleeperBed""driving""onDuty""yardMove""personalConveyance" .
Mileage
We use https://api.samsara.com/fleet/vehicles/stats/history?types=obdOdometerMeters&StartTime=XXXXX&EndTime=XXXXX to request mileage.
Cancel a route?
I initially thought I could cancel a route through the update endpoint, but I'm not seeing a way to mark a route as skipped or canceled. How can I cancel (not delete) a route?
Geofences
I have 2 different customers inside the same building. When my driver gets to this address it confirms the 1st delivery, but then he has to leave the parking lot and drive back into the geofence to confirm the 2nd delivery. Is there a away to link the 2 customers to 1 geofence?