Using NextBillion.ai’s Post Trip Route API you can trace the actual route taken by your truck. The Post Trip API will take into account a list of locations tracked while the truck was on trip and returns the total distance of the trip along with the geometry of the route taken.
This information is quite helpful in tackling business cases needing to track the miles covered for fuel reimbursement or quality assessments post-service.
Following is a sample request with
list of tracked location coordinates provided as input for waypoints.
mode option set to truck
geometry parameter is set to polyline6 to indicate the format in which the path geometry is needed.