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
Places, addresses, streets and points of interest for a query, best first.
| Parameter | Type | Description |
|---|---|---|
q | string | What to find. The last word may be a prefix. |
near | lat,lon | Rank results near this point higher. |
bbox | min lon,min lat,max lon,max lat | Keep to this box. |
types | list | Any of address, street, place, poi. |
limit | 1–20 | How 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
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
{"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
| Parameter | Type | Description |
|---|---|---|
from, to | lat,lon | Start and end, snapped to the network within 1 km. |
via | lat,lon;… | Up to 23 stops in order; adds legs. |
profile | car | bike | foot | Default car. |
alternatives | bool | Up to two other ways, each at most 1.4× the best time. |
exclude | list | Any 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
| Parameter | Type | Description |
|---|---|---|
sources | lat,lon;… | Rows. |
destinations | lat,lon;… | Columns; omitted means every source to every other. |
profile | car | bike | foot | |
annotations | duration,distance | One table or both. |
fallback_speed | km/h, 1–200 | Fill 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
| Parameter | Type | Description |
|---|---|---|
at | lat,lon | The centre. |
contours_minutes | list, 1–60 | Up to four times. Or: |
contours_meters | list, 1–100000 | Up to four road distances. |
profile | car | bike | foot | |
denoise | 0–1 | Drop pieces smaller than this share of the largest. |
generalize | metres, ≤ 2000 | Simplify each outline. |
polygons | bool | false for MultiLineStrings. |
GeoJSON FeatureCollection, a MultiPolygon per contour, largest first. One request.
Map matching
| Parameter | Type | Description |
|---|---|---|
points | lat,lon;… | 2 to 100 GPS positions. |
radius / radiuses | metres | Search radius, for all or each point. |
timestamps | unix seconds;… | No step faster than the profile goes. |
profile | car | bike | foot |
Answers the route through them with tracepoints (where each went, or null). A request per step.
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
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
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
| Parameter | Type | Description |
|---|---|---|
center, zoom | lat,lon / number | Or leave out to fit. |
size | WxH, ≤ 1280 | Pixels. |
scale | 1 | 2 | 2 for high-density screens. |
style | name | Yours, or light / dark. |
markers, marker_color | lat,lon;… / #hex | |
path | lat,lon;… | A line to draw. |
bbox | box | Fit to this box. |
A PNG; one request.
Organisations, usage and keys
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.