Get optimized route for a delivery
GET/truckers/deliveries/route/:service_code
This endpoint returns the optimized route between the loading and unloading points of a delivery.
Information included:
- Coordinates of the complete route (array of GPS points)
- Total distance in kilometers
- Estimated travel time in minutes
- Step-by-step navigation instructions
- Relevant points of interest along the route
Use cases:
- Visualizing the optimal route on the carrier's map
- Calculating estimated time and distance
- Obtaining detailed navigation instructions
- Identifying rest stops or refueling points
Notes:
- Requires valid JWT authentication
- Only works for deliveries assigned to the carrier
- The route is calculated using the internal mapping service
- Estimated times consider real-time traffic
Request
Responses
- 200
- 401
- 404
Detailed route information
Unauthorized
Not found