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[]
required

Tasks to serve. Free plan: up to 100; Hobby: up to 1,000.

shipments
object[]

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

matrices
object

Optional custom travel-time matrices per profile; skips OSRM table calls.

geometry
boolean
default:false

Add polyline geometry to each route in the response.

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[]