{"uid":"cap_KdLik9cP-Uba_jhfcvU20","slug":"halowerk-planar-polyline-douglas-peucker-retained-vertices-d0f3ba4a","name":"Halowerk Planar Polyline Douglas-Peucker Retained Vertices","description":"Simplify a sampled planar route with explicit maximum deviation tolerance.","url":"https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B001/planar-polyline-douglas-peucker-retained-vertices?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7GW26YyGczYe9V6Bg-4wT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simplifies a 2D polyline using the Ramer-Douglas-Peucker algorithm, returning the indices of retained vertices within a given maximum deviation tolerance.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"GPS track simplification for map rendering","prompt":"I have a sampled GPS track with 80 coordinate pairs and I want to reduce it for display — apply Douglas-Peucker with a tolerance of 5.0 and tell me which points to retain."},{"title":"Route compression before storage","prompt":"Before I store this 2D route in the database, simplify it using RDP with tolerance 1.0 so I only keep the structurally important vertices — here are the 50 points: [[0,0],[0.5,0.1],[1,0],[2,3],...]."},{"title":"Geometry preprocessing for rendering pipeline","prompt":"I'm building a map layer and need to thin out this polyline — use Douglas-Peucker with a maximum deviation of 10.0 on these 128 planar points and give me the indices of the vertices I should keep."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T18:50:27.675Z","isFirstParty":false,"canonicalSlug":"halowerk-planar-polyline-douglas-peucker-retained-vertices-d0f3ba4a"}