vroom
vroom copied to clipboard
Max vehicle weight capacity
Good afternoon. Tell me, how can I limit the maximum number of parcels in a car by weight? Now there is a situation when the maximum load capacity is 1500kg, and the vroom loads it up to 4 tons for me.
im use shipments
shipments: [
{
"id": 6,
"amount": [
250
],
"pickup": {
"id": 6,
"location": [...],
"time_window": [...]
},
"delivery": {
"id": 6,
"service": 1500,
"location": [...],
"time_window": [...]
}
},
{
"id": 7,
"amount": [
250
],
"pickup": {
"id": 7,
"location": [...],
"time_window": [...]
},
"delivery": {
"id": 7,
"service": 1500,
"location": [...],
"time_window": [...]
}
},
]
vehicles: [
{
"id": 1,
"start": [...],
"end": [...],
"capacity": [
1500
],
"profile": "car",
"time_window": [...]
},
{
"id": 2,
"start": [...],
"end": [...],
"capacity": [1500],
"profile": "car",
"time_window": [...]
},
]
Thx!
Using a "capacity": [1500] array is the way to go.
and the vroom loads it up to 4 tons for me.
If you want feedback on a specific solution that you don't understand, you'll have to share the exact input you're using along with the output you're getting.