CartomoorBeta

API reference

Every endpoint, every parameter.

The whole Cartomoor HTTP API. Each endpoint is also an MCP tool.

Base URL https://api.cartomoor.com. Every call takes a token in Authorization: Bearer, or a public key as access_token where its scopes allow. Answers are JSON with an attribution field.

Geocoding

GET/v1/geocode

Places, addresses, streets and points of interest for a query, best first.

ParameterTypeDescription
qstringWhat to find. The last word may be a prefix.
nearlat,lonRank results near this point higher.
bboxmin lon,min lat,max lon,max latKeep to this box.
typeslistAny of address, street, place, poi.
limit1–20How many results (default 5).

Each result: label, name, kind, detail (e.g. cafe, suburb, interpolated), context, lat, lon, and distance_m with near. Not yet: country and language, which wait on coverage past Queensland.

Reverse geocoding

GET/v1/reverse?lat&lon

The nearest address within 100 m, else the nearest street or point of interest within 500 m, else the nearest place; plus locality, the suburb or town whose boundary holds the point.

Batch geocoding

POST/v1/geocode/batch

{"queries": [{"q": "…"}, {"lat": …, "lon": …}]}: up to 100 forward (q, with limit, near, bbox, types) or reverse queries, answered in order. Every query is checked first; a bad one refuses the batch and names its index. Each counts as the request it would be alone.

Directions

GET/v1/route
ParameterTypeDescription
from, tolat,lonStart and end, snapped to the network within 1 km.
vialat,lon;…Up to 23 stops in order; adds legs.
profilecar | bike | footDefault car.
alternativesboolUp to two other ways, each at most 1.4× the best time.
excludelistAny of motorway, toll, ferry.

Answer: distance_m, duration_s, geometry ([lon, lat] pairs), steps (each with instruction, maneuver {type, modifier, bearings, location}, distance_m, name), from/to (where each end snapped), and alternatives. Not yet: traffic.

Matrix

GET/v1/matrix
ParameterTypeDescription
sourceslat,lon;…Rows.
destinationslat,lon;…Columns; omitted means every source to every other.
profilecar | bike | foot
annotationsduration,distanceOne table or both.
fallback_speedkm/h, 1–200Fill cells no route joins with the straight line at this speed (listed in fallback).

Up to 25 points together; each cell is one request. durations_s and distances_m are a row per source, null where nothing joins.

Isochrones

GET/v1/isochrone
ParameterTypeDescription
atlat,lonThe centre.
contours_minuteslist, 1–60Up to four times. Or:
contours_meterslist, 1–100000Up to four road distances.
profilecar | bike | foot
denoise0–1Drop pieces smaller than this share of the largest.
generalizemetres, ≤ 2000Simplify each outline.
polygonsboolfalse for MultiLineStrings.

GeoJSON FeatureCollection, a MultiPolygon per contour, largest first. One request.

Map matching

GET/v1/match
ParameterTypeDescription
pointslat,lon;…2 to 100 GPS positions.
radius / radiusesmetresSearch radius, for all or each point.
timestampsunix seconds;…No step faster than the profile goes.
profilecar | bike | foot

Answers the route through them with tracepoints (where each went, or null). A request per step.

Elevation

GET/v1/elevation?points=lat,lon;…
GET/v1/elevation?path=lat,lon;…&samples=N
POST/v1/elevation

Heights in metres at up to 100 points (1,000 by POST), or 2 to 1,000 samples along a line with distance_m, climb_m, descent_m, min_m, max_m. A request per 100 points.

Tiles and TileJSON

GET/v1/tiles/{z}/{x}/{y}.mvt
GET/v1/tiles.json
GET/v1/fonts/{fontstack}/{range}.pbf

Mapbox Vector Tiles, zoom 0 to 14. Layers: water, landuse, roads, buildings (z14), places, pois (z14). A tile is a tenth of a request; TileJSON and fonts are free.

Styles

GET/v1/orgs/{org}/styles
PUT/v1/orgs/{org}/styles/{name}
DELETE/v1/orgs/{org}/styles/{name}
GET/v1/orgs/{org}/styles/{name}/style.json

A style is a base (light or dark), colors by palette key, single-layer edits, and layers to hide; up to 50 per organisation, saved by an admin. style.json is MapLibre style JSON with labels.

Static images

GET/v1/static
ParameterTypeDescription
center, zoomlat,lon / numberOr leave out to fit.
sizeWxH, ≤ 1280Pixels.
scale1 | 22 for high-density screens.
stylenameYours, or light / dark.
markers, marker_colorlat,lon;… / #hex
pathlat,lon;…A line to draw.
bboxboxFit to this box.

A PNG; one request.

Organisations, usage and keys

GET/v1/orgs
POST/v1/orgs
GET/v1/orgs/{org}
GET/v1/orgs/{org}/usage?hours=
GET/v1/orgs/{org}/keys
POST/v1/orgs/{org}/keys
POST/v1/orgs/{org}/keys/{id}/rotate

Members and roles (owner, admin, deployer, member), service clients and limits; usage by the hour for up to a week (by kind, tiles by zoom, by caller, refusals); public keys with origins, scopes and limits, rotated with grace_seconds up to a week.