Vehicle routing with capacity and time windows

Generate optimal route plan of a vehicle fleet with limited vehicle capacity and time windows. New visits may be added by clicking anywhere inside the map.

Score: ?
Solution summary
Total driving time: unknown
Vehicles
Name Load Tags Driving time

REST API Guide

Vehicle routing with vehicle capacity and time windows - integration via cURL

1. Download demo data

              
              curl -X GET -H 'Accept:application/json' http://localhost:8080/demo-data/FIRENZE -o sample.json
    

2. Post the sample data for solving

The POST operation returns a jobId that should be used in subsequent commands.

you need to use API key. Key is stored in Mathesio bitwarden vault, in "timefold routing" collection. To use it, you need to add header x-api-key={secret from bitwarden}

              
              curl -X POST -H 'Content-Type:application/json' -H 'x-api-key::secret from bitwarden' http://localhost:8080/route-plans -d@sample.json
    

3. Get the current status and score

              
              curl -X GET -H 'Accept:application/json' http://localhost:8080/route-plans/{jobId}/status
    

4. Get the complete route plan

              
              curl -X GET -H 'Accept:application/json' http://localhost:8080/route-plans/{jobId}
    

5. Terminate solving early

              
              curl -X DELETE -H 'Accept:application/json' http://localhost:8080/route-plans/{jobId}
    

REST API Reference