lauf.halowerk.com/v1/tours/distance-readiness
Delivery tour distance budget from a caller-supplied route distance matrix. Sum every actual leg including return, require declared matrix dimensions and compare meters with budget. Uses the paid-qualified existing VRP planner unchanged, then checks this business rule against the actual proposed route. A rule violation yields dispatch_ready=false, never an assertion that the extra constraint was o
POST
https://lauf.halowerk.com/v1/tours/distance-readinessUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://lauf.halowerk.com/v1/tours/distance-readiness", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"distances_m":[[0,3000,4800,3600],[3000,0,2400,1800],[4800,2400,0,3000],[3600,1800,3000,0]],"durations_s":[[0,300,480,360],[300,0,240,180],[480,240,0,300],[360,180,300,0]],"jobs":[{"demand":2,"id":"stop-A","point":1,"service_s":120,"window":[0,1800]},{"demand":2,"id":"stop-B","point":2,"service_s":180,"window":[600,3000]},{"demand":1,"id":"stop-C","point":3,"service_s":60,"window":[0,3600]}],"mat),
});
console.log(await res.json());Example input
{"distances_m":[[0,3000,4800,3600],[3000,0,2400,1800],[4800,2400,0,3000],[3600,1800,3000,0]],"durations_s":[[0,300,480,360],[300,0,240,180],[480,240,0,300],[360,180,300,0]],"jobs":[{"demand":2,"id":"stop-A","point":1,"service_s":120,"window":[0,1800]},{"demand":2,"id":"stop-B","point":2,"service_s":180,"window":[600,3000]},{"demand":1,"id":"stop-C","point":3,"service_s":60,"window":[0,3600]}],"mat