This feature is configurable via .json
input, without the need for code customization and is available for both the Marketplace app and 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.
Field name | Required | Data type | SI Unit | Defined on | Example | Configurable via defaults |
---|---|---|---|---|---|---|
duration | No | int | seconds | stop | {"duration": 123} | ✅ |
The duration
feature is the estimated amount of time in seconds
a vehicle needs to service a stop. For example, a vehicle might need less time to service a stop for a ride-sharing scenario than it would for loading large quantities of produce in a sourcing scenario.
The duration is defined for stops. In the output, the end_time
of a stop is calculated as start_time + duration
. The original duration
of the stop is also displayed in the output.
Here is an example defining different durations. A sample output obtained after solving the problem is also shown.