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_distance | No | int | meters | vehicle | {"max_distance": 123} | ✅ |
It may be useful to limit the route distance, this is, how long can a vehicle travel. For example, if the vehicle has a limited range. This limit can be set via the max_distance
feature on vehicles. The distance is given in meters
.
Here is an example defining different maximum distances for vehicles. A sample output obtained after solving the problem is also shown.