x402AgentsToolsHub

Plus Codes (Open Location Code)

Convert coordinates to an Open Location Code (Google Plus Code) and back, with the decoded bounding box. Plus codes give every 14×14-meter spot on Earth a short address that works without street names — ideal where addresses don't exist.

Worked examples

Google HQ → code

GET /api/v1/geo-time/plus-codes?value=37.4220%2C-122.0841

Result: 849VCWC8+Q9R

Code → coordinates

GET /api/v1/geo-time/plus-codes?value=849VCWC8%2BR9

Result: 849VCWC8+R9 → 37.422062, -122.084063

Eiffel Tower

GET /api/v1/geo-time/plus-codes?value=48.8584%2C2.2945

Result: 8FW4V75V+9Q9

Machine API (x402)

$0.01 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/geo-time/plus-codes?value=37.4220%2C-122.0841 HTTP/1.1
Host: agentstoolshub.com

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "geo-time/plus-codes",
  "input": {"value":"37.4220,-122.0841"},
  "result": { "value": 37.422, "answer": "849VCWC8+Q9R" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Exact Open Location Code (Plus Code) conversion using the official algorithm: coordinates in, full 11-digit code out (and the shorter local form), plus codes in, bounding-box coordinates out. Deterministic and offline — plus codes are the address system for the third of the world without street addresses.

Frequently asked questions

What is a plus code exactly?

An open standard (by Google, used in Maps) encoding latitude/longitude into a short code. '849VCWC8+R9' pinpoints a 14×14 m area — no database, no ambiguity, works offline.

Why did my code decode to a box, not a point?

A plus code IS an area. An 11-digit code covers ~14 m; shorter codes cover larger boxes. The center coordinates are the canonical point.

Related tools