# WritersLogic GIS Coordinate Axis & Unit Validator

> WritersLogic GIS Coordinate Axis & Unit Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).

Validates up to 1000 coordinate pairs (or one bounding box) against a named EPSG CRS, flagging axis swaps, unit mismatches, out-of-bounds values, and inverted bounds.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/geo-axis-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-gis-coordinate-axis-unit-validator-1f9a084f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6I6Nr0S2FjXmusDjK7dXc

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 writerslogic-gis-coordinate-axis-unit-validator-1f9a084f -d '<json body>'
```

Example prompt: Check these 500 coordinate pairs for me — they're supposed to be in EPSG:4326 lon-lat order, but I want to make sure none are axis-swapped, out of bounds, or mixing up degree and metre units.

## When to prefer this

Use this endpoint when you need to catch axis-order swaps, degree-vs-metre unit confusion, out-of-area values, or inverted bounding boxes in coordinate data before it enters a GIS pipeline or map rendering step. It is not a reprojection or geocoding service — prefer it for lightweight pre-flight validation of raw coordinate arrays against a named CRS, especially when handling data from multiple sources with inconsistent conventions.

## Known failure modes

- Unknown EPSG code without an areaOfUse override returns 'unknown' result rather than 'pass' or 'fail'
- Projected CRS other than EPSG:3857 cannot distinguish axis swaps from unit errors and returns 'unknown' for clean points
- More than 1000 coordinate pairs submitted — request will be rejected
- Malformed EPSG code string that cannot be parsed returns an error
- Bounding box array with fewer or more than 4 elements is rejected
- Supplying both coordinates and bounds simultaneously may produce ambiguous results

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured response indicating per-coordinate validation results: each flagged point includes its index, the values supplied, and the type of issue detected (axis swap, unit mismatch, out-of-area, or inverted bounds). For projected CRS codes other than EPSG:3857, clean results return 'unknown' rather than 'pass' since no projection math is applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "crs": {
   "type": "string",
   "maxLength": 80,
   "description": "EPSG code in any common form (EPSG:4326, 4326, urn:ogc:def:crs:EPSG::4326) or CRS84. See versions for the snapshot of known codes; others return unknown unless areaOfUse is supplied."
  },
  "bounds": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "maxItems": 4,
   "minItems": 4,
   "description": "[minFirst, minSecond, maxFirst, maxSecond] in the data's own order; its two corners are checked like points and min must not exceed max."
  },
  "areaOfUse": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "maxItems": 4,
   "minItems": 4,
   "description": "[south, west, north, east] degrees; overrides the snapshot for a geographic CRS or supplies one for an unknown geographic code."
  },
  "coordinates": {
   "type": "array",
   "items": {
    "type": "array",
    "items": {
     "type": "number"
    },
    "maxItems": 2,
    "minItems": 2
   },
   "maxItems": 1000,
   "description": "[first, second] pairs exactly as they appear in the data."
  },
  "declaredOrder": {
   "enum": [
    "lon-lat",
    "lat-lon",
    "easting-northing",
    "northing-easting"
   ],
   "type": "string",
   "description": "What the data claims: lon-lat or easting-northing means the first value is the east axis; lat-lon or northing-easting means north first. Default: the CRS's EPSG authority order (CRS84: lon-lat)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-gis-coordinate-axis-unit-validator-1f9a084f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
