# Halowerk Planar Polyline Douglas-Peucker Retained Vertices

> Halowerk Planar Polyline Douglas-Peucker Retained Vertices is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Simplifies a 2D polyline using the Ramer-Douglas-Peucker algorithm, returning the indices of retained vertices within a given maximum deviation tolerance.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B001/planar-polyline-douglas-peucker-retained-vertices?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-planar-polyline-douglas-peucker-retained-vertices-d0f3ba4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KdLik9cP-Uba_jhfcvU20

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 halowerk-planar-polyline-douglas-peucker-retained-vertices-d0f3ba4a -d '<json body>'
```

Example prompt: Simplify this 2D route using the Douglas-Peucker algorithm with a tolerance of 2.5 — the points are [[0,0],[1,0.1],[2,0],[3,5],[4,0],[5,0.05],[6,0]] — and tell me which vertex indices to keep.

## When to prefer this

Use this endpoint when you need a fast, deterministic server-side Ramer-Douglas-Peucker simplification of a 2D polyline with an explicit maximum deviation tolerance, especially when you need the retained vertex indices (not just the simplified coordinates). Prefer this over client-side implementations when you need consistency, auditability, or are working in an agentic pipeline that benefits from a paid, verified computation step.

## Known failure modes

- Fewer than 2 points provided — schema requires minItems:2
- More than 128 points provided — schema enforces maxItems:128
- Tolerance out of range (negative or above 10000) — validation error
- Point coordinates out of range (outside -1000000 to 1000000) — validation error
- Malformed point arrays (not exactly 2 numbers per point) — schema error
- Payment not attached or insufficient — x402 payment required error

## How this service works

Simplify a sampled planar route with explicit maximum deviation tolerance.

## Output

The endpoint returns the indices of the vertices from the input points array that are retained after applying the Ramer-Douglas-Peucker simplification algorithm at the specified tolerance. These indices identify which original points form the simplified polyline.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "rdp"
   ],
   "properties": {
    "rdp": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "points",
        "tolerance"
       ],
       "properties": {
        "points": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "type": "number",
           "maximum": 1000000,
           "minimum": -1000000
          },
          "maxItems": 2,
          "minItems": 2
         },
         "maxItems": 128,
         "minItems": 2
        },
        "tolerance": {
         "type": "number",
         "maximum": 10000,
         "minimum": 0
        }
       },
       "additionalProperties": false
      },
      "claim": {}
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-planar-polyline-douglas-peucker-retained-vertices-d0f3ba4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
