# Geo Halowerk Line Simplify (Ramer-Douglas-Peucker)

> Geo Halowerk Line Simplify (Ramer-Douglas-Peucker) is a paid API for AI agents from geo.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Simplifies a planar polyline using the Ramer-Douglas-Peucker algorithm, reducing point count while preserving shape within a given tolerance.

## Facts

- Endpoint: POST https://geo.halowerk.com/v1/line-simplify
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geo-halowerk-line-simplify-ramer-douglas-peucker-b9262a64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yeR54qqHr2xl3HOTPsgFY

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 geo-halowerk-line-simplify-ramer-douglas-peucker-b9262a64 -d '<json body>'
```

Example prompt: Simplify this polyline for me — it has thousands of GPS points and I need to reduce it for display. Use a tolerance of 0.001 and apply Ramer-Douglas-Peucker. Here are the points: [{x: 0, y: 0}, {x: 1, y: 0.1}, {x: 2, y: 0}, ...]

## When to prefer this

Use this endpoint when you need a lightweight, transparent, paid-per-call implementation of Ramer-Douglas-Peucker for planar (non-spherical) geometry. It is ideal when you want explicit provenance metadata (method disclosure, null field reporting) and when your coordinates are already in a projected or flat coordinate system. Prefer this over client-side or bundled GIS libraries when you need a serverless, auditable geometry operation without standing up your own infrastructure.

## Known failure modes

- Fewer than 2 points provided — minimum input requirement not met
- Tolerance value is negative — must be >= 0
- Point coordinates exceed allowed range of ±1,000,000,000,000
- Array exceeds 100,000 point maximum
- Malformed point objects missing required x or y fields
- Payment not provided or insufficient (x402 payment required)

## How this service works

Simplifies a planar line with the Ramer-Douglas-Peucker algorithm. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age. 

## Output

Returns a simplified array of planar points that preserves the overall shape of the input line within the specified tolerance. Missing or unavailable fields are listed explicitly as null with names in an unavailable_fields array. Derived values include their computation method for transparency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "points": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "x",
     "y"
    ],
    "properties": {
     "x": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": ""
     },
     "y": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": ""
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100000,
   "minItems": 2
  },
  "tolerance": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 0,
   "description": ""
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geo-halowerk-line-simplify-ramer-douglas-peucker-b9262a64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geo.halowerk.com](https://www.zero.xyz/host/geo.halowerk.com/llms.txt)
