Using NextBillion.ai’s Post Trip Route API you can trace the actual route taken by your vehicles. The Post Trip API will take into account a list of tracked locations while the vehicle was on trip and returns the total distance along with the geometry of the route taken. Use the information returned in the response to fulfill business functions like disbursing fuel allowances, logging miles covered, quality assessments for the services provided by the vehicles in your fleet.
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.