Vehicle Routing Problem with Time Windows (VRPTW)
POST /v1/route/vrptw
Same as VRP but with time window constraints on jobs/shipments. Vehicles must arrive within the specified time windows.
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, requiredjobsarray of object- Jobs with time_windows field
shipmentsarray of object
Price
See the price of /v1/route/vrptw on the pricing page.