api.x-402.online/v1/route/directions
Point-to-point directions between 2 and 10 stops by car, bike or on foot: total and per-leg distance and travel time, snapped stops, route geometry as GeoJSON or polyline Point-to-point directions between 2 and 10 stops by car, bike or on foot: total an…
GET
https://api.x-402.online/v1/route/directionsUptime100% of 5 checks 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://api.x-402.online/v1/route/directions?mode=car&stops=48.8566%2C2.3522%7C45.7640%2C4.8357");
console.log(await res.json());Example input
{
"mode": "car",
"stops": "48.8566,2.3522|45.7640,4.8357"
}