This feature is only available for Platform. You can find a list of all available features here.
This how-to guide assumes you already completed the get started with vehicle routing tutorial.
You can change the default output that is generated by our vehicle routing engine. If you would like to calculate and track some KPI then we recommend you to use our statistics convention because it allows you to track this data running experiments on our platform. You can read more about this here.
But you can also generate your complete own output. For example, this may be useful if you want to integrate the engine into an existing system where several services depend on a certain output structure.
Example
First create a new struct
which will repesent your output data:
And then create a new function that takes a nextroute.Solution
as an input
and returns the output
struct.
Now we adapt the solver function
to adhere to this new struct and change its return value to the new output struct
:
Lastly, use the new output function
to return you custom output
: