Comments (2)
Does this imply amount/capacity constraints are simply not supported by the front end?
No, if you upload a json file with amounts they will be transferred to the backend. The restriction is that we have no way to set an amount for a new job upon clicking on the map. So in order to avoid inconsistent behavior (some jobs with amounts some without), we simply erase all amounts for existing jobs/vehicles in that case and warn users about it.
This should only happen if you load a problem with amounts and then try to add some more jobs manually.
from vroom-frontend.
Thank you for your reply and explanation.
I tested on http://map.vroom-project.org/ with the request below and I can confirm your statement.
When I test with the frontend version pulled in via the vroom-frontend-docker image (see my inital post) the amounts/capacities are removed right upon upload without adding an additional job manually.
{
"vehicles": [
{
"id": 1,
"start": [
2.35044,
48.71764
],
"end": [
2.35044,
48.71764
],
"capacity": [
4
],
"skills": [
1,
14
],
"time_window": [
1600416000,
1600430400
]
},
{
"id": 2,
"start": [
2.35044,
48.71764
],
"end": [
2.35044,
48.71764
],
"capacity": [
4
],
"skills": [
2,
14
],
"time_window": [
1600416000,
1600430400
],
"breaks": [
{
"id": 2,
"service": 300,
"time_windows": [
[
1600423200,
1600425000
]
]
}
]
}
],
"jobs": [
{
"id": 1,
"service": 300,
"delivery": [
1
],
"location": [
1.98935,
48.701
],
"skills": [
1
],
"time_windows": [
[
1600419600,
1600423200
]
]
},
{
"id": 2,
"service": 300,
"pickup": [
1
],
"location": [
2.03655,
48.61128
],
"skills": [
1
]
},
{
"id": 5,
"service": 300,
"delivery": [
1
],
"location": [
2.28325,
48.5958
],
"skills": [
14
]
},
{
"id": 6,
"service": 300,
"delivery": [
1
],
"location": [
2.89357,
48.90736
],
"skills": [
14
]
}
],
"shipments": []
}
from vroom-frontend.
Related Issues (20)
- Change path opacity onclick HOT 2
- Remove amount key
- Add node collection from Overpass HOT 3
- front-end does not work on windows HOT 7
- Option to change leaflet geocoder HOT 2
- Reload on insufficient capacity
- Invalid description value
- Improve data entry by user HOT 3
- Handle shipments HOT 2
- Error: spawn C:\Users\zribi\OneDrive\Bureau\vroom-frontend\node_modules\.bin\browserify ENOENT HOT 3
- error nmp install HOT 1
- Vroom-frontend docker HOT 8
- Export to GPX HOT 2
- Error 0 HOT 2
- Front end not displaying routes HOT 2
- Incompatibility with the latest stable version of Leaflet 1.9.1 HOT 1
- Vroom-frontend local node server crashing on Windows 10 HOT 2
- Json output, ploting solution HOT 7
- missing profile for ORS requests HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vroom-frontend.