Forward geocoding for AI agents
x402.tbs-digital.com/geo/forward
Forward geocoding for AI agents: turn a place name (city, town, region, landmark; not a street address) into coordinates. Returns the best-match latitude, longitude, country and ISO country code, administrative regions (admin1/admin2), population, IANA timezone and GeoNames feature code. Query by q= (aliases city, query, name); optional language=, country=. Open-Meteo geocoding.
GET
https://x402.tbs-digital.com/geo/forwardUptime100% 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://x402.tbs-digital.com/geo/forward?q=Paris");
console.log(await res.json());Example input
{
"q": "Paris"
}More from TBS Geocoding API
- x402.tbs-digital.com/geo/placesPlace search / geocoding autocomplete for AI agents: return the top matching places for a name query. Each result carries name, latitude, longitude, country and ISO code, administrative regions, population, timezone and feature code. Query by q= with an optional count= (1-20, default 5). Sourced from Open-Meteo geocoding — keyless, unified schema.0.001
- x402.tbs-digital.com/geo/reverseReverse geocoding for AI agents: turn a latitude/longitude into its locality, region and country (not a street address). Returns city, locality, principal subdivision (state/region), country and ISO country code. Query by lat= and lon= (aliases latitude, longitude, or q=lat,lon). Sourced from BigDataCloud — keyless, unified schema, stablecoin-payable.0.002
