API & MCP

Everything a person can do on Cartograph True Size of Countries (Mercator comparer), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Cartograph True Size of Countries (Mercator comparer)

Moves a country outline (Natural Earth admin-0) to any place on the globe while keeping its true shape and area, and shows how big it looks on a Web-Mercator map at home and at the new place, next to its real geodesic area and an optional second country. It is the true-size engine of the Cartograph app.

Inputs of Cartograph True Size of Countries (Mercator comparer)
FieldTypeDefaultDescription
countrytext"GRL"Country (English name or ISO code)
targettext"2, 20"Move it to. Coordinate of the new centre (anchor = centre of the bounding box of the largest part).
rotationDegnumber0Rotation (clockwise)
comparetext—Compare with (optional). A second country drawn at home and compared by true area.

Example request

Greenland moved to the equator, compared with DR Congo

curl -X POST https://cartographtruesize.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"country":"GRL","target":"2, 20","compare":"COD"}'

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": {
    "cartograph-true-size": { "type": "http", "url": "https://cartographtruesize.usefulweb.app/mcp" }
  }
}