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

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.

Inputs of RavingDesk GeoJSON Validator & Inspector
FieldTypeDefaultDescription
geojson (required)textarea"{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"propertieGeoJSON. A FeatureCollection, a Feature or a bare geometry (up to 5 MB, 200,000 positions).
repairbooleantrueRepair what can be repaired (close rings, fix winding, remove repeated positions)
decimalsinteger—Round coordinates to decimals (optional). 6 decimals ≈ 0.1 m, 7 ≈ 1 cm. Leave empty to keep them.
testPointtext—Test point (optional). Latitude/longitude in any notation; the tool lists the polygons that contain it.
bufferMnumber—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)

{
  "mcpServers": {
    "ravingdesk-geojson-inspector": { "type": "http", "url": "https://ravingdeskgeojsoninspector.usefulweb.site/mcp" }
  }
}