# Mercator Forward Projection

> Mercator Forward Projection is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Converts geographic coordinates (latitude/longitude) to Web Mercator projected coordinates (x/y) in meters

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/geometry/mercator-forward?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mercator-forward-projection-b7e8c772
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uUEh_ZAQREP3Kp-4ydmZv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mercator-forward-projection-b7e8c772 -d '<json body>'
```

Example prompt: Convert latitude 40.7128 and longitude -74.0060 to Web Mercator projected x/y coordinates.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call Mercator forward projection without running your own math library. Ideal for serverless agent workflows that need to convert a handful of geographic coordinates to projected map space on demand, especially when integrated with x402 micropayment flows.

## Known failure modes

- Latitude out of [-90, 90] range returns validation error
- Longitude out of [-180, 180] range returns validation error
- Missing required lat or lon fields returns 400 bad request
- Extreme polar latitudes (near ±90°) may be clamped, indicated by latitude_clamped=true

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with x (easting in meters), y (northing in meters), and a latitude_clamped boolean indicating whether the latitude was clamped to valid Mercator bounds (approximately ±85.05 degrees).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number",
   "maximum": 90,
   "minimum": -90,
   "description": "Latitude in decimal degrees."
  },
  "lon": {
   "type": "number",
   "maximum": 180,
   "minimum": -180,
   "description": "Longitude in decimal degrees."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "x": 0,
  "y": 0,
  "latitude_clamped": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mercator-forward-projection-b7e8c772/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
