Skip to content

Instantly share code, notes, and snippets.

@oblonski
Created June 26, 2024 10:00
Show Gist options
  • Select an option

  • Save oblonski/8f6dc708cd50412281bbf4a4cba904c3 to your computer and use it in GitHub Desktop.

Select an option

Save oblonski/8f6dc708cd50412281bbf4a4cba904c3 to your computer and use it in GitHub Desktop.
{
"configuration": {
"routing": {
"calc_points": true,
"return_snapped_waypoints": true
}
},
"objectives": [
{
"type": "min",
"value": "completion_time"
}
],
"vehicles": [
{
"vehicle_id": "v1",
"type_id": "custom_vehicle_type",
"start_address": {
"location_id": "v1",
"lat": 48.142667,
"lon": 11.548715
},
"earliest_start": 1508839200,
"return_to_depot": true
}
],
"vehicle_types": [
{
"type_id": "custom_vehicle_type",
"profile": "car"
}
],
"services": [
{
"id": "s1",
"type": "service",
"address": {
"location_id": "s1",
"lat": 48.08641845016677,
"lon": 11.516493414687789
},
"duration": 120
},
{
"id": "s2",
"type": "service",
"address": {
"location_id": "s2",
"lat": 48.35237,
"lon": 11.55526
},
"duration": 120
},
{
"id": "s3",
"type": "service",
"address": {
"location_id": "s3",
"lat": 48.530361,
"lon": 11.515092
},
"duration": 120
},
{
"id": "s4",
"type": "service",
"address": {
"location_id": "s4",
"lat": 48.09606824878595,
"lon": 11.469586212141838
},
"duration": 120
},
{
"id": "s5",
"type": "service",
"address": {
"location_id": "s5",
"lat": 48.16172066492897,
"lon": 11.616870772386983
},
"duration": 120
},
{
"id": "s6",
"type": "service",
"address": {
"location_id": "s6",
"lat": 48.2127829633635,
"lon": 11.589519730966291
},
"duration": 120
},
{
"id": "s7",
"type": "service",
"address": {
"location_id": "s7",
"lat": 48.116753106475464,
"lon": 11.594491066071091
},
"duration": 120
},
{
"id": "s8",
"type": "service",
"address": {
"location_id": "s8",
"lat": 48.1964155166027,
"lon": 11.495951860126452
},
"duration": 120
},
{
"id": "s9",
"type": "service",
"address": {
"location_id": "s9",
"lat": 48.0996356904015,
"lon": 11.509811865652752
},
"duration": 120
},
{
"id": "s10",
"type": "service",
"address": {
"location_id": "s10",
"lat": 48.21479924905828,
"lon": 11.58887075963218
},
"duration": 120
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment