Skip to main content
POST
Solve a vehicle routing problem

Authorizations

Authorization
string
header
required

API key created in the JustRouting dashboard.

Body

application/json
vehicles
object[]
required

Available vehicles. Free plan: up to 10; Hobby: up to 50.

jobs
object[]

Jobs to serve. Optional if shipments is provided. Free plan: up to 100 tasks; Hobby: up to 1,000.

shipments
object[]

Pickup-and-delivery tasks (pickup must precede delivery).

matrices
object

Custom matrices per profile; skips OSRM table calls when durations are provided for all used profiles.

options
object

Solver options; g maps to the VROOM -g flag.

Response

Problem solved

code
enum<integer>

0 = ok, 1 = internal error, 2 = input error, 3 = routing error.

Available options:
0,
1,
2,
3
error
string

Present when code != 0.

summary
object
unassigned
object[]
routes
object[]