80trust / 100

Vrp Plan

by lauf.halowerk.com in Weather & location

x402 APIPassing, checked 3 h ago

Distinct from route/matrix: assigns jobs to up to four vehicles and orders visits at a common depot, reports arrival/wait/service/return times, capacity usage and unassigned jobs. Consumes caller travel-time matrix, including durations_s from HALOWERK route/matrix, avoiding a duplicate routing API or invented road data. Deterministic earliest-deadline cheapest-feasible-insertion heuristic; no global optimum or proof of infeasibility.

POST https://lauf.halowerk.com/v1/vrp-plan

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
114 ms typical, 137 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://lauf.halowerk.com/v1/vrp-plan" \
  -H "content-type: application/json" \
  -d '{"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]}],"matrix_source":"Demonstration travel-time matrix, not a live road measurement","vehicles":[{"capacity":3,"id":"van-1","shift":[0,7200]},{"capacity":2,"id":"van-2","shift":[0,7200]}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Flauf.halowerk.com%2Fv1%2Fvrp-plan
const res = await pay("https://lauf.halowerk.com/v1/vrp-plan", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"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]}],"matrix_source":"Demonstration travel-time matrix, not a live road measurement","vehicles":[{"capacity":3,"id":"van-1","shift":[0,7200]},{"capacity":2,"id":"van-2","shift":[0,7200]}]}),
});
console.log(await res.json());

Example input

{
  "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
      ]
    }
  ],
  "matrix_source": "Demonstration travel-time matrix, not a live road measurement",
  "vehicles": [
    {
      "capacity": 3,
      "id": "van-1",
      "shift": [
        0,
        7200
      ]
    },
    {
      "capacity": 2,
      "id": "van-2",
      "shift": [
        0,
        7200
      ]
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402131 ms$0.006
7 h agoPassed402137 ms$0.006
10 h agoPassed402191 ms$0.006
14 h agoPassed402130 ms$0.006
17 h agoPassed402104 ms$0.006
21 h agoPassed402114 ms$0.006
25 h agoPassed402108 ms$0.006
28 h agoPassed402114 ms$0.006
34 h agoPassed402107 ms$0.006