-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
When using ORS requests need to use profile "driving-car" instead of default "car". Otherwise this results in a 400 response with the message that profile "car" doesn't exist which is correct because ORS named it "driving-car".
This fixed the issue for me though it is specific for ORS and fixes all cars to the same profile (which not adding one does as well):
var vehicles = JSON.parse(JSON.stringify(dataHandler.getVehicles()));
for (let i = 0; i < vehicles.length; i++) {
vehicles[i].profile = 'driving-car';
}
var input = {
jobs: JSON.parse(JSON.stringify(dataHandler.getJobs())),
shipments: JSON.parse(JSON.stringify(dataHandler.getShipments())),
vehicles: vehicles,
"options": {
"g": true
}
};Reactions are currently unavailable