H

HALOWERK Agent Tools · Route Matrix

by HALOWERK Agent Tools

POSTBase

$0.004

per call · USD Coin on Base

Berechnet Entfernung und Fahrzeit zwischen bis zu 25 Punkten, wahlweise als volle Matrix oder als Start-Ziel-Kreuz. Nimmt Koordinaten oder Anschriften und geokodiert sie selbst. Nutzt freie Streckendaten auf Basis von OpenStreetMap fuer Auto, Rad und Fussweg und faellt bei Ausfall nachvollziehbar auf eine Luftlinienschaetzung mit Umwegfaktor zurueck.

Endpoint

POST https://tools.halowerk.com/v1/route/matrix

3

Calls / 30d

2

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://tools.halowerk.com/v1/route/matrix", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "mode": "driving",
    "points": [
      "Gronau, Westfalen",
      "Münster, Deutschland",
      {
        "label": "Lager Ost",
        "lat": 51.9607,
        "lon": 7.6261
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://tools.halowerk.com/v1/route/matrix" \
  -H "Content-Type: application/json" \
  -d '{"mode":"driving","points":["Gronau, Westfalen","Münster, Deutschland",{"label":"Lager Ost","lat":51.9607,"lon":7.6261}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "attribution": "Streckendaten: OSRM auf Basis von OpenStreetMap, Mitwirkende ODbL",
  "cells": [
    {
      "distance_km": 71.43,
      "distance_m": 71430,
      "duration_min": 56.7,
      "duration_s": 3402,
      "from": "Gronau, Westfalen",
      "from_index": 0,
      "to": "Lager Ost",
      "to_index": 2
    }
  ],
  "destinations": [
    "Gronau, Westfalen",
    "Münster, Deutschland",
    "Lager Ost"
  ],
  "fallback_reason": null,
  "mode": "driving",
  "nearest_per_origin": {
    "Gronau, Westfalen": {
      "distance_km": 69.8,
      "duration_min": 55.1,
      "to": "Münster, Deutschland"
    }
  },
  "note": "Freie Streckendaten ohne Verkehrslage und ohne Zeitfenster.",
  "origins": [
    "Gronau, Westfalen",
    "Münster, Deutschland",
    "Lager Ost"
  ],
  "points": [
    {
      "label": "Gronau, Westfalen",
      "lat": 52.2117,
      "lon": 7.0403,
      "matched": "Gronau (Westf.), Nordrhein-Westfalen",
      "resolved_from": "geokodierung"
    },
    {
      "label": "Lager Ost",
      "lat": 51.9607,
      "lon": 7.6261,
      "resolved_from": "koordinaten"
    }
  ],
  "source": "osrm",
  "totals": {
    "cells": 9,
    "max_distance_km": 71.43,
    "max_duration_min": 56.7,
    "unreachable": 0
  }
}

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from HALOWERK Agent Tools & similar services