Endpoint · extractionPOSTapi.geoprimitives.dev /v1/geojson/repair
Repair GeoJSON and get the fixed document back with a log of every alteration: rings rewound to RFC 7946 winding order, consecutive duplicate vertices dropped, unclosed rings…
Read more
Repair GeoJSON and get the fixed document back with a log of every alteration: rings rewound to RFC 7946 winding order, consecutive duplicate vertices dropped, unclosed rings closed, and polygon nesting fixed (mis-ordered exterior rings, holes that fall outside their exterior, MultiPolygon members that are really holes). Reach for it when POST /v1/geojson/validate reported errors, or when /v1/geometry, /v1/h3/polyfill or /v1/pip refused your document -- unclosed rings are the usual reason, and this is the cheapest way to clear them. Conservative by design: it only rewrites the classes above, and anything else it found is returned in unrepaired rather than guessed at, so it will not invent geometry or move a coordinate. Idempotent -- a conformant document comes back untouched with changed:false, so a second call costs money and changes nothing. Your input object is never mutated. Coordinate values are preserved exactly; nothing is rounded or reprojected. Limit: 1 MiB request body.Overview
Grade?
UNRATED
0 of 30 paid calls toward a letter
Price
$0.01 per call
Paid calls
none yet
delivery unknown until someone pays
More info
Seller?
URL
https://api.geoprimitives.dev/v1/geojson/repair
Seen
first 35 days ago · last 14 days ago
54 free handshakes
Payment
Pays through
x402
Offered on?
Base USDC
Listed on?
Base
About
- ?Description
- Repair GeoJSON and get the fixed document back with a log of every alteration: rings rewound to RFC 7946 winding order, consecutive duplicate vertices dropped, unclosed rings closed, and polygon nesting fixed (mis-ordered exterior rings, holes that fall outside their exterior, MultiPolygon members that are really holes). Reach for it when POST /v1/geojson/validate reported errors, or when /v1/geometry, /v1/h3/polyfill or /v1/pip refused your document -- unclosed rings are the usual reason, and this is the cheapest way to clear them. Conservative by design: it only rewrites the classes above, and anything else it found is returned in unrepaired rather than guessed at, so it will not invent geometry or move a coordinate. Idempotent -- a conformant document comes back untouched with changed:false, so a second call costs money and changes nothing. Your input object is never mutated. Coordinate values are preserved exactly; nothing is rounded or reprojected. Limit: 1 MiB request body.
- URL
- https://api.geoprimitives.dev/v1/geojson/repair
- Method
- POST
- Class
- extraction
- ?Checkable to
- L1
- Endpoint id
- cap_01M1A59RXPJKKKG8R6S3P8Q072
- ?Badge
Reads live. UNRATED until paid calls earn a letter.
- Markdown
- [](https://teppi.xyz/endpoint/cap_01M1A59RXPJKKKG8R6S3P8Q072)
- HTML
- <a href="https://teppi.xyz/endpoint/cap_01M1A59RXPJKKKG8R6S3P8Q072"><img src="https://api.teppi.xyz/badge/cap_01M1A59RXPJKKKG8R6S3P8Q072.svg" alt="Teppi delivery record"></a>
- Image
- https://api.teppi.xyz/badge/cap_01M1A59RXPJKKKG8R6S3P8Q072.svg
Verify it yourself
npx teppi-check https://api.geoprimitives.dev/v1/geojson/repaircurl -s https://api.teppi.xyz/v1/trust/cap_01M1A59RXPJKKKG8R6S3P8Q072