API & MCP
Everything a person can do on RavingDesk GeoJSON Validator & Inspector, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ravingdeskgeojsoninspector.usefulweb.site/api/v1/calculate– run RavingDesk GeoJSON Validator & InspectorGET https://ravingdeskgeojsoninspector.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
RavingDesk GeoJSON Validator & Inspector
Checks a GeoJSON file against RFC 7946 with a plain-language problem list (open rings, wrong winding order, swapped longitude/latitude, out-of-range positions, obsolete crs, antimeridian edges), repairs what can be repaired without guessing, and reports geodesic polygon areas, perimeters and line lengths on the WGS84 ellipsoid, the bounding box (antimeridian-aware), centroids, which polygons contain a test point, and an optional geodesic buffer around points and lines. It is the GeoJSON engine of RavingDesk’s Data & charts.
| Field | Type | Default | Description |
|---|---|---|---|
geojson (required) | textarea | "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"propertie | GeoJSON. A FeatureCollection, a Feature or a bare geometry (up to 5 MB, 200,000 positions). |
repair | boolean | true | Repair what can be repaired (close rings, fix winding, remove repeated positions) |
decimals | integer | — | Round coordinates to decimals (optional). 6 decimals ≈ 0.1 m, 7 ≈ 1 cm. Leave empty to keep them. |
testPoint | text | — | Test point (optional). Latitude/longitude in any notation; the tool lists the polygons that contain it. |
bufferM | number | — | Buffer distance (optional). Adds approximate geodesic buffer polygons around every point and line. |
Example request
Park outline, a street and a monument in Berlin, with a test point
curl -X POST https://ravingdeskgeojsoninspector.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"geojson":"{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"Tiergarten (rough outline, clockwise)\"},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[13.3364,52.5145],[13.3499,52.5196],[13.3778,52.5167],[13.3747,52.5099],[13.3491,52.5091],[13.3364,52.5145]]]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Straße des 17. Juni\"},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[13.3504,52.5145],[13.3612,52.5143],[13.3777,52.5163]]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Victory Column\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[13.350108,52.514543]}}]}","testPoint":"52.5145, 13.3501"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ravingdeskgeojsoninspector.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ravingdesk_geojson_inspector - Local stdio connector:
node src/mcp-stdio.ts --tool=ravingdesk-geojson-inspector
{
"mcpServers": {
"ravingdesk-geojson-inspector": { "type": "http", "url": "https://ravingdeskgeojsoninspector.usefulweb.site/mcp" }
}
}