Vehicle Routing Problem (VRP)
POST /v1/route/vrp
Solves a multi-vehicle routing problem using VROOM. Assigns jobs or shipments to a fleet of vehicles to minimize total travel cost.
Request format follows the VROOM API specification.
Locations may be given as [lon, lat] (VROOM style) or {"lat": .., "lon": ..}; they are validated and a wrong one is reported with its position in the request.
Limits: 1–200 vehicles, 1–1000 jobs/shipments in the schema, but the routing engine currently accepts at most 210 distinct locations per request (vehicle start and end points included); larger requests return 422. Typical times in one city: 40 stops about 6 seconds, 100 stops about 20 seconds, 200 stops about one minute. Locations without a road connection are returned in unassigned with reason: unreachable_location. Timeout: 120s. Each API key may send 10 optimisation requests per minute on each of the two endpoints (429 above that). Requests from one key run one at a time; when the engine is full a request waits its turn for up to 45 seconds and is then answered 503 with Retry-After.
Parameters
vehiclesarray of object, required- VROOM vehicle definitions
jobsarray of object- VROOM job definitions (pickup or delivery)
shipmentsarray of object- VROOM shipment definitions (pickup + delivery pairs)
Price
See the price of /v1/route/vrp on the pricing page.