# WGS84 to Web Mercator (EPSG:3857) Forward Projection

> WGS84 to Web Mercator (EPSG:3857) Forward Projection is a paid API for AI agents from geospatial.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a WGS84 longitude/latitude coordinate pair (in degrees) to Web Mercator (EPSG:3857) easting and northing values in metres.

## Facts

- Endpoint: POST https://geospatial.openverbs.com/v1/forward
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wgs84-to-web-mercator-epsg-3857-forward-projection-3f55622b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m96NRuCx6Dcs9lE1iTkS3

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 wgs84-to-web-mercator-epsg-3857-forward-projection-3f55622b -d '<json body>'
```

Example prompt: Convert longitude -79.9822 and latitude 40.4462 from WGS84 decimal degrees to Web Mercator EPSG:3857 easting and northing in metres.

## When to prefer this

Use this endpoint when you need to convert WGS84 decimal-degree coordinates into the Web Mercator (EPSG:3857) projected coordinate system used by most web tile mapping services (OSM, Google Maps, Mapbox). Prefer this over a generic GIS library call when running in a serverless or agent context without local geospatial dependencies. Choose the sibling inverse endpoint when going from EPSG:3857 back to WGS84.

## Known failure modes

- Longitude outside [-180, 180] — validation error returned
- Latitude outside [-90, 90] — validation error returned
- Missing required fields lon or lat — schema validation error
- Latitude near ±90° is clamped to ±85.0511° silently rather than erroring
- Network timeout or service unavailability returns a non-2xx HTTP error

## How this service works

Project WGS84 longitude/latitude (degrees) to Web Mercator (EPSG:3857) easting/northing in metres. Latitude is clamped to ±85.0511° (the projection's valid extent).

## Output

Returns the projected easting (X) and northing (Y) values in metres in the EPSG:3857 Web Mercator coordinate reference system. Latitude is clamped to ±85.0511° if the input exceeds the valid projection extent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "lon",
      "lat"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude in degrees."
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude in degrees."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wgs84-to-web-mercator-epsg-3857-forward-projection-3f55622b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geospatial.openverbs.com](https://www.zero.xyz/host/geospatial.openverbs.com/llms.txt)
