Skip to content
Fourohtwo

api.duoleads.com/v1/geo/pluscode

Encode coordinates as an Open Location Code (plus code) at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Returns code length, precision in metres and validity.

BaseAnswering
GEThttps://api.duoleads.com/v1/geo/pluscode

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://api.duoleads.com/v1/geo/pluscode?lat=52.3728&lon=4.8936");
console.log(await res.json());

Example input

{
  "lat": "52.3728",
  "lon": "4.8936"
}

More from Duo Data Utilities