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 |
---|---|---|---|---|---|---|
max_stops | No | int | NA | vehicle | {"max_stops": 2} | ✅ |
It may be useful to limit the number of stops in a route to a particular amount. This limit can be set via the max_stops
feature on vehicles. The vehicle's starting and ending locations are not counted as stops.
Here is an example defining different maximum stops for vehicles. A sample output obtained after solving the problem is also shown.