Skip to content
Fourohtwo

ort.halowerk.com/v1/wgs84-antimeridian-leg-crossing

Antimeridian crossing returns the latitude and along-leg distance where a WGS84 segment crosses the date line. Use it when an agent needs to split a geodesic for a map projection.

BaseAnswering
POSThttps://ort.halowerk.com/v1/wgs84-antimeridian-leg-crossing

Uptime100% 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://ort.halowerk.com/v1/wgs84-antimeridian-leg-crossing", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lat1":35.6762,"lat2":21.3099,"lon1":139.6503,"lon2":-157.8581}),
});
console.log(await res.json());

Example input

{
  "lat1": 35.6762,
  "lat2": 21.3099,
  "lon1": 139.6503,
  "lon2": -157.8581
}