curl -X POST 'https://api.solvice.io/v2/vrp/evaluate' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"resources": [
{
"name": "Driver-1",
"shifts": [{
"from": "2024-01-15T08:00:00Z",
"to": "2024-01-15T17:00:00Z",
"start": {"latitude": 50.8503, "longitude": 4.3517}
}],
"capacity": [100]
},
{
"name": "Driver-2",
"shifts": [{
"from": "2024-01-15T08:00:00Z",
"to": "2024-01-15T17:00:00Z",
"start": {"latitude": 50.8466, "longitude": 4.3528}
}],
"capacity": [100]
}
],
"jobs": [
{
"name": "Delivery-001",
"location": {"latitude": 50.8798, "longitude": 4.7005},
"duration": 600,
"load": [10],
"windows": [{
"from": "2024-01-15T09:00:00Z",
"to": "2024-01-15T12:00:00Z"
}],
"initialResource": "Driver-2",
"initialArrival": "2024-01-15T09:30:00Z",
"plannedArrival": "2024-01-15T09:15:23Z"
},
{
"name": "Delivery-002",
"location": {"latitude": 50.8366, "longitude": 4.3684},
"duration": 900,
"load": [15],
"windows": [{
"from": "2024-01-15T10:00:00Z",
"to": "2024-01-15T14:00:00Z"
}],
"initialResource": "Driver-2",
"initialArrival": "2024-01-15T10:45:00Z",
"plannedArrival": "2024-01-15T10:45:12Z"
},
{
"name": "Delivery-003",
"location": {"latitude": 50.8939, "longitude": 4.3412},
"duration": 450,
"load": [8],
"initialResource": "Driver-1",
"initialArrival": "2024-01-15T08:30:00Z",
"plannedArrival": "2024-01-15T08:25:45Z"
}
],
"options": {
"distanceMatrixType": "OSM_ROUTE"
}
}'