Community
Create Custom Live Share Links
I'd like to generate a Live Share link through an API with a custom destination. Is this possible?
Please note I am not an API dev but before I go down the hole of putting one on this I'd like to know if it's even possible.
My Goal:
Send address and assigned vehicle asset data to Samasara (via Monday.com API) > Generate Live Share Link with custom route and expiration > Send back link to Monday.com with a webhook.
Posted by Kyle over 2 years ago
Will fleet_viewer_url be added to /fleet/routes?
Hello, wondering if we can expect the `fleet_viewer_url` field from `/v1/fleet/dispatch/routes` to be added to the new `/fleet/routes`?
Thanks!
Posted by Brandon Westcott over 2 years ago
Route Completion Indication
I was wondering if there is any field exposed via route related end points that indicates if route is complete.
Posted by Amit over 2 years ago
Require arrival notes
Is there a way to require drivers to add notations to each of their arrivals. IE- reach destination but customer did not answer for pick up.
Posted by Stephaney Peters over 2 years ago
Routes Beta API
This Beta came out over 7 months ago. When will it be switching to a general release?
Posted by Matt Gibson over 2 years ago
Obtaining Vehicle / Trailer info for a Route
Hi all,
Trying to figure out how to link these pieces together. If you create a route and assign a driver to it, the route API does not display the vehicle/trailer that are picked by the driver. You need to use the vehicle-assignment API call to get that info.
As an example, the route API For a given route returns (non-relevant info stripped out):
{
"id": ####,
"dispatch_jobs": [
{
"id": ####
}
]
}
The vehicle assignment history for that same time period displays:
"vehicleAssignments": [
{
"isPassenger": false,
"vehicle": {
"id": "####"
},
"startTime": "2021-03-24T19:56:01.302Z",
"endTime": "2021-03-24T19:56:44.000Z",
"assignmentType": "driverApp"
},
{
"isPassenger": false,
"vehicle": {
"id": "####"
},
"startTime": "2021-03-24T20:41:35.352Z",
"endTime": "2021-03-24T21:00:23.717Z",
"assignmentType": "driverApp"
},
{
"isPassenger": false,
"vehicle": {
"id": "####"
},
"startTime": "2021-03-24T21:00:23.717Z",
"endTime": "2021-03-24T21:30:09.000Z",
"assignmentType": "driverApp"
},
{
"isPassenger": false,
"vehicle": {
"id": "####"
},
"startTime": "2021-03-24T21:40:40.191Z",
"endTime": "2021-03-24T23:23:28.000Z",
"assignmentType": "driverApp"
},
{
"isPassenger": false,
"vehicle": {
"id": "####"
},
"startTime": "2021-03-24T23:23:33.743Z",
"endTime": "2021-03-24T23:59:41.000Z",
"assignmentType": "driverApp"
}
]
As it stands, the only way I can think of to get the vehicle assignment, is to basically take the millisecond start/end time from the route, convert it to a UTC timestamp (side note - please be consistent on this. for example, start/end times in vehicle assignment are in UTC timestamps, whereas start/end times for routes are in milliseconds), and then query the vehicle assignment for the driver on the route and for that time range.
But that approach seems very prone to error. Seems like the vehicle assignment should just be part of the route instead?
Posted by Kiran Ramaswamy over 2 years ago
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?
Posted by Corey Davidson over 2 years ago
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?
Posted by Taco 🌮 almost 3 years ago
Manually completing route stop using the API
I've read in your guide that actual times tracked by samsara are not editable using the PUT request, but I'm also aware that there's a possibility to manually complete the stop using the driver app, or by changing the actual times on the dashboard, so I'm wondering is there any chance to get that possibility available also through the API
Posted by Matt almost 3 years ago
Updating a Driver on a Route mid trip
Question regarding if a route is updated to another driver in the middle of the Route. Is there a way through the API to know? For example, if a dispatch goes into Samara and switches the Driver is there a way to know this through an API endpoint?
Posted by David Gudat about 3 years ago