API & MCP
Everything a person can do on RavingDesk Geodesic Distance & Bearing Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ravingdeskgeodesicdistance.usefulweb.site/api/v1/calculate– run RavingDesk Geodesic Distance & Bearing CalculatorGET https://ravingdeskgeodesicdistance.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
RavingDesk Geodesic Distance & Bearing Calculator
Measures the shortest path between two or more points on the WGS84 ellipsoid with Karney’s geodesic algorithm (nanometre accuracy, also for nearly antipodal points where Vincenty’s method fails): leg distances, initial and final bearings, midpoints, the total route length and how far the spherical Haversine formula is off. Coordinates can be written in decimal degrees, DMS, UTM, MGRS, plus codes or Maidenhead. It is the distance engine of RavingDesk’s Data & charts geo layer.
| Field | Type | Default | Description |
|---|---|---|---|
points | table | [{"label":"Brandenburg Gate","coordinate":"52.516275, 13.377704"},{"label":"Eiff | Points in order. One point per row, e.g. 52.5163, 13.3777 · 52°31′N 13°24′E · 33U 391779 5820072 · 33UUU9177920072 · 9F4MGCC4+22. |
closeLoop | boolean | false | Return to the first point (closed loop) |
ellipsoid | select (wgs84, grs80, bessel1841, international1924) | "wgs84" | Ellipsoid |
Example request
Brandenburg Gate (Berlin) to the Eiffel Tower (Paris)
curl -X POST https://ravingdeskgeodesicdistance.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"points":[{"label":"Brandenburg Gate","coordinate":"52.516275, 13.377704"},{"label":"Eiffel Tower","coordinate":"48.858222, 2.2945"}]}'
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://ravingdeskgeodesicdistance.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ravingdesk_geodesic_distance - Local stdio connector:
node src/mcp-stdio.ts --tool=ravingdesk-geodesic-distance
{
"mcpServers": {
"ravingdesk-geodesic-distance": { "type": "http", "url": "https://ravingdeskgeodesicdistance.usefulweb.site/mcp" }
}
}