Jobs without explicit locations inherit from related jobs
{ "resources": [ { "id": "v1", "name": "Vehicle 1", "shifts": [ { "id": "shift1", "start": { "location": {"lat": 51.1079, "lon": 17.0385}, "time": "2024-01-01T08:00:00Z" }, "end": { "location": {"lat": 51.1079, "lon": 17.0385}, "time": "2024-01-01T18:00:00Z" }, "capacity": [100] } ] } ], "jobs": [ { "id": "job1", "name": "Job 1", "location": {"lat": 51.1279, "lon": 17.0485}, "serviceDurationInSeconds": 900, "windows": [["2024-01-01T09:00:00Z", "2024-01-01T17:00:00Z"]], "load": [10] }, { "id": "job2", "name": "Job 2 (Inherited Location)", "serviceDurationInSeconds": 600, "windows": [["2024-01-01T09:00:00Z", "2024-01-01T17:00:00Z"]], "load": [5], "relations": [ { "type": "same_vehicle", "jobs": ["job1", "job2"] } ] } ] }
location
same_vehicle
capacity
load
{ "solution": { "routes": [ { "resourceId": "v1", "shiftId": "shift1", "activities": [ { "type": "start", "location": {"lat": 51.1079, "lon": 17.0385}, "time": { "arrival": "2024-01-01T08:00:00Z", "departure": "2024-01-01T08:00:00Z" } }, { "type": "job", "jobId": "job1", "location": {"lat": 51.1279, "lon": 17.0485}, "time": { "arrival": "2024-01-01T08:10:00Z", "departure": "2024-01-01T08:25:00Z" }, "travelTimeInSeconds": 600, "distanceInMeters": 2500 }, { "type": "job", "jobId": "job2", "location": {"lat": 51.1279, "lon": 17.0485}, "time": { "arrival": "2024-01-01T08:25:00Z", "departure": "2024-01-01T08:35:00Z" }, "travelTimeInSeconds": 0, "distanceInMeters": 0 }, { "type": "end", "location": {"lat": 51.1079, "lon": 17.0385}, "time": { "arrival": "2024-01-01T08:45:00Z" } } ] } ] } }
Was this page helpful?