Overview
Some jobs may not have explicit locations but need to inherit them from related jobs. This is useful for scenarios like:- Pickup and delivery where delivery inherits pickup location
- Multi-stop visits where subsequent stops inherit the previous location
- Tasks that must be performed at the same location as another job
Example Request
This example demonstrates jobs with inherited locations where Job 2 will inherit its location from Job 1.Key Points
- No Location Specified: Job 2 has no
location
field - Relation Constraint: The
same_vehicle
relation ensures both jobs are served by the same vehicle - Inherited Behavior: When Job 2 is scheduled after Job 1, it inherits Job 1’s location
- Travel Time: No travel time is calculated between jobs at the same inherited location
- Capacity: The
capacity
andload
arrays must have matching dimensions
Response Example
Use Cases
- Service Continuity: Multiple services at the same customer location
- Grouped Tasks: Tasks that must be performed together at one location
- Dynamic Locations: Jobs where the location depends on the execution order