Skip to content
Fourohtwo

ort.halowerk.com/v1/web-mercator-fit-to-canvas

Web Mercator viewport fitting returns metres per pixel and unused horizontal or vertical canvas space. Use it when an agent needs a rectangular map fitted without cropping.

BaseAnswering
POSThttps://ort.halowerk.com/v1/web-mercator-fit-to-canvas

Uptime100% of 4 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/web-mercator-fit-to-canvas", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"east":13.7,"height_px":600,"north":52.7,"south":52.3,"west":13.1,"width_px":800}),
});
console.log(await res.json());

Example input

{
  "east": 13.7,
  "height_px": 600,
  "north": 52.7,
  "south": 52.3,
  "west": 13.1,
  "width_px": 800
}