API & MCP

Everything a person can do on Cartograph Meet Halfway (fair meeting point for 2–12 people), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Cartograph Meet Halfway (fair meeting point for 2–12 people)

Takes two to twelve places (any coordinate format) and finds the geodesic midpoint, the fairest point (the shortest longest trip, i.e. the centre of the smallest circle around everyone on the globe) and the point with the least total distance, with every person’s straight-line distance. With an OpenStreetMap extract it also finds the fairest meeting place by road for walking or cycling. It is the meet-halfway engine of the Cartograph app.

Inputs of Cartograph Meet Halfway (fair meeting point for 2–12 people)
FieldTypeDefaultDescription
peopletextarea"Berlin: 52.5163, 13.3777\nHamburg: 53.5503, 9.9920\nMunich: 48.1374, 11.5755"People (one per line: “Name: coordinate”). Coordinates in any format: decimal degrees, DMS, UTM, MGRS, plus codes, geohash. Addresses are not looked up.
useRoadsbooleanfalseAlso find the fairest place by road (needs an extract or the Vaduz sample)
profileselect (foot, bike)"foot"Travel mode for roads
filefile—OpenStreetMap extract (.osm, .osm.pbf or GeoJSON). Up to 25 MB. Leave empty to use the built-in Vaduz sample. Download extracts from your own OpenStreetMap export, Geofabrik or BBBike; Cartograph never fetches map data itself.

Example request

Berlin, Hamburg and Munich (straight line)

curl -X POST https://cartographmeethalfway.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"people":"Berlin: 52.5163, 13.3777\nHamburg: 53.5503, 9.9920\nMunich: 48.1374, 11.5755"}'

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-meet-halfway": { "type": "http", "url": "https://cartographmeethalfway.usefulweb.app/mcp" }
  }
}