Solution¶
After the routing job has been solved successfully, the result endpoint returns a solution to your routing problem. This solution determines the following:
- High-level summary statistics, such as total distance and duration, as well as costs, and the number of planned tasks and assigned vehicles.
- The routes, including the activity sequence, route geometries, and detailed statistics.
- The IDs of unplanned tasks (see Task priorities).
- Technical statistics about runtime and iterations.
A solution consists of one or multiple routes. A route is represented by a sequence of activities: this includes departure from and arrival at the depot, as well as visits to each task. Routes also contain summary statistics, such as start and end times, as well as slack duration, which provides additional flexibility for determining when a route can start. The Time windows and service duration tutorial walks through a detailed example of route and activity statistics. More details on the solution can be found in the API reference.