Skip to content

Instantly share code, notes, and snippets.

@napo
Created March 4, 2022 15:01
Show Gist options
  • Save napo/8dcffd99b06556cee7ec7a8aec7d7d6f to your computer and use it in GitHub Desktop.
Save napo/8dcffd99b06556cee7ec7a8aec7d7d6f to your computer and use it in GitHub Desktop.
{
"vehicles": [
{
"id": 1,
"description": "Vehicle 1",
"profile": "driving-car",
"capacity": [
250
],
"start": [
10.7198351,
46.0348311
],
"end": [
10.7515427,
46.0448494
],
"time_window": [
1646029800,
1646066700
],
"breaks": [
{
"id": 1,
"service": 75,
"time_windows": [
[
1646047800,
1646052300
]
]
}
],
"start_index": 0,
"end_index": 1
}
],
"jobs": [
{
"id": 1,
"description": "Delivery 1",
"delivery": [
2
],
"location": [
10.7629986,
46.1552317
],
"priority": 10,
"location_index": 2
},
{
"id": 2,
"description": "Delivery 2",
"delivery": [
2
],
"location": [
10.7624803,
46.1559774
],
"priority": 10,
"location_index": 3
},
{
"id": 3,
"description": "Delivery 3",
"delivery": [
2
],
"location": [
10.7634139,
46.1565073
],
"priority": 10,
"location_index": 4
},
{
"id": 4,
"description": "Delivery 4",
"delivery": [
2
],
"location": [
10.7638129,
46.157245
],
"priority": 10,
"location_index": 5
},
{
"id": 5,
"description": "Delivery 5",
"delivery": [
2
],
"location": [
10.7637794,
46.1572807
],
"priority": 10,
"location_index": 6
}
],
"options": {
"g": 0
},
"matrices": {
"driving-car": {
"durations": [
[
0,
421,
1383,
1408,
1356,
1360,
1361
],
[
392,
0,
1222,
1246,
1195,
1199,
1200
],
[
1364,
1205,
0,
30,
35,
56,
57
],
[
1380,
1221,
30,
0,
51,
72,
73
],
[
1329,
1170,
35,
51,
0,
21,
22
],
[
1333,
1174,
56,
72,
21,
0,
1
],
[
1334,
1175,
57,
73,
22,
1,
0
]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment