Skip to content
Fourohtwo

Airport-to-airport route info

agentgate-x402.netlify.app/api/route

Airport-to-airport route info: great-circle distance in km/nm/mi plus estimated flight time between any two of 49,000+ airports. Useful for travel planning, logistics and aviation agents.

BaseAnswering
GEThttps://agentgate-x402.netlify.app/api/route

Uptime100% 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agentgate-x402.netlify.app/api/route?to=LHR&from=JFK");
console.log(await res.json());

Example input

{
  "to": "LHR",
  "from": "JFK"
}

More from AgentGate