API & MCP

Everything a person can do on Cartograph GPS Art Route Designer (shape → roads → GPX), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Cartograph GPS Art Route Designer (shape → roads → GPX)

Places a shape (heart, star, circle, square, triangle, arrow or zigzag) at a point, size and rotation, samples it into waypoints, snaps them to the walkable or rideable roads of your own OpenStreetMap extract and joins them with shortest paths that stay close to the shape. Returns the route as GPX with its length and how closely it follows the drawing. Routing runs on the extract itself — no routing service is used. It is the GPS-art engine of the Cartograph app.

Inputs of Cartograph GPS Art Route Designer (shape → roads → GPX)
FieldTypeDefaultDescription
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.
shapeselect (heart, star, circle, square, triangle, arrow, zigzag)"heart"Shape
centertext—Shape centre. Empty: the middle of the extract.
widthMnumber1000Shape width
rotationDegnumber0Rotation (clockwise)
profileselect (foot, bike)"foot"Travel mode
spacingMnumber0Waypoint spacing. 0 = automatic (shape length ÷ 60, at least 30 m).
guidancenumber2Stay-on-shape weight. 0 = plain shortest paths between waypoints; higher values prefer streets close to the drawn line.

Example request

Heart run in Vaduz (built-in sample)

curl -X POST https://cartographrouteart.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"shape":"heart","center":"47.145, 9.517","widthM":1000,"profile":"foot"}'

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-route-art": { "type": "http", "url": "https://cartographrouteart.usefulweb.site/mcp" }
  }
}