Skip to content
Fourohtwo

Geocoding and reverse geocoding from GeoNames

agentsvc.io/api/v1/proxy/geocode

Geocoding and reverse geocoding from GeoNames: city, town or postal code to lat/lon, and lat/lon to the nearest place and postal code. Covers 170,000 places with 1000+ inhabitants and 1.8 million postal codes worldwide, answered from our own database in milliseconds. Not street level: house numbers and streets are skipped and reported in ignored_parts. Provide address (e.g. 'Paris, Texas', '10115

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/geocode

Uptime100% of 2 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://agentsvc.io/api/v1/proxy/geocode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"Brandenburger Tor, Berlin"}),
});
console.log(await res.json());

Example input

{
  "address": "Brandenburger Tor, Berlin"
}