{"uid":"cap_yeR54qqHr2xl3HOTPsgFY","slug":"geo-halowerk-line-simplify-ramer-douglas-peucker-b9262a64","name":"Geo Halowerk Line Simplify (Ramer-Douglas-Peucker)","description":"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. ","url":"https://geo.halowerk.com/v1/line-simplify","method":"POST","headers":{},"bodySchema":{"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":""}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VGpUTbrd5aJuW1FaKxT--","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simplifies a planar polyline using the Ramer-Douglas-Peucker algorithm, reducing point count while preserving shape within a given tolerance.","exampleAgentPrompt":"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}, ...]","exampleUseCases":[{"title":"Compress GPS track for mobile map","prompt":"I have a raw GPS track with 8,000 points recorded every second — can you simplify it using a tolerance of 0.0005 so I can render it on a mobile map without killing performance?"},{"title":"Thin road geometry for tile rendering","prompt":"This road centerline has way too many vertices for zoom level 10 tile rendering. Simplify it with Ramer-Douglas-Peucker using a tolerance of 50 so we only keep the points that matter for the shape."},{"title":"Reduce polygon boundary complexity","prompt":"I exported a coastline polygon from a shapefile and it has 50,000 points — simplify the boundary line with a tolerance of 100 so I can use it in a lightweight web visualization."}],"resultDescription":"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.","failureModes":["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)"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:44:45.072Z","isFirstParty":false}