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

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.

Inputs of RavingDesk Geodesic Distance & Bearing Calculator
FieldTypeDefaultDescription
pointstable[{"label":"Brandenburg Gate","coordinate":"52.516275, 13.377704"},{"label":"EiffPoints in order. One point per row, e.g. 52.5163, 13.3777 · 52°31′N 13°24′E · 33U 391779 5820072 · 33UUU9177920072 · 9F4MGCC4+22.
closeLoopbooleanfalseReturn to the first point (closed loop)
ellipsoidselect (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)

{
  "mcpServers": {
    "ravingdesk-geodesic-distance": { "type": "http", "url": "https://ravingdeskgeodesicdistance.usefulweb.site/mcp" }
  }
}