Electric-vehicle energy reserve check for the actual scheduled legs
lauf.halowerk.com/v1/tours/energy-readiness
Electric-vehicle energy reserve check for the actual scheduled legs. Sum caller energy_wh per leg including return, compare with available_energy_wh minus reserve_energy_wh; no battery measurement or charging plan. 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 assertio
POST
https://lauf.halowerk.com/v1/tours/energy-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/energy-readiness", {
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]],"energy_wh":[[0,600,960,720],[600,0,480,360],[960,480,0,600],[720,360,600,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":"I),
});
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]],"energy_wh":[[0,600,960,720],[600,0,480,360],[960,480,0,600],[720,360,600,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":"I