Routing
Directions, matrices and reach, with turns in words.
Car, bike and foot over OpenStreetMap's roads, with its one-way, access and turn rules. Up to 23 stops, two alternatives, avoid motorways, tolls and ferries. Travel-time matrices, isochrones, and GPS traces put back on the roads.
Live
Route it live.
City Hall to Fortitude Valley by bike, with two other ways in grey. Change the profile, avoid roads, or click to set your own start and end.
Or click the map: What's here answers the nearest address, street or place.
Click the map twice to set a new start and end.
Click the map to move the centre.
From Toowong to the summit of Mount Coot-tha. Click the map twice for your own line.
The request and its answer
Matrix, live
Which depot is nearest by road?
Straight-line distance lies about rivers and one-way streets. The matrix gives the real time and distance from every source to every destination.
Three depots, four drops: twelve travel times in one call.
The request and its answer
What you get
The whole routing toolkit.
Directions
Distance, duration, the line, a leg per stretch and every step with its manoeuvre and instruction. Ends snap to the network and say where.
Matrix
Durations and distances for up to 25 points, null where nothing joins them, or a straight-line fallback at a speed you set.
Isochrones
Up to four contours by time (1 to 60 minutes) or road distance (to 100 km) as GeoJSON, with denoise and generalize. One request.
Map matching
2 to 100 GPS points put on the roads with a hidden Markov model, each point's radius and timestamps honoured, answered as the route through them.
Rules kept
One-way streets, access tags per mode, turn restrictions with their exceptions, and ferries where the map says who may board.
Not yet: trafficLater
Durations come from the road and the mode, not live traffic. Time-of-day turn restrictions are next.
Example
Same calls from code.
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css">
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<div id="map" style="height:420px"></div>
<script>
const KEY = "pk.your-org.…"; // a public key, locked to your site in the console
new maplibregl.Map({
container: "map",
style: `https://api.cartomoor.com/v1/orgs/your-org/styles/light/style.json?access_token=${KEY}`,
center: [153.0251, -27.4698], zoom: 14
});
</script># search, best first: the last word may be cut short
curl "https://api.cartomoor.com/v1/geocode?q=brisbane+city+hall&near=-27.4698,153.0251" \
-H "Authorization: Bearer $CARTOMOOR_TOKEN"
# by bike, with turns in words and up to two other ways
curl "https://api.cartomoor.com/v1/route?from=-27.4688,153.0235&to=-27.4575,153.0355&profile=bike&alternatives=true" \
-H "Authorization: Bearer $CARTOMOOR_TOKEN"const API = "https://api.cartomoor.com";
const r = await fetch(`${API}/v1/route?from=-27.4688,153.0235&to=-27.4575,153.0355&profile=bike`, {
headers: { Authorization: `Bearer ${process.env.CARTOMOOR_TOKEN}` }
});
const route = await r.json();
console.log(route.distance_m, route.duration_s); // 2844.6 640.0
for (const s of route.steps) console.log(s.instruction); // "Turn left onto Ann Street", …import os, requests
API = "https://api.cartomoor.com"
r = requests.get(f"{API}/v1/isochrone", params={
"at": "-27.4688,153.0235", "contours_minutes": "5,10,15", "profile": "bike"},
headers={"Authorization": f"Bearer {os.environ['CARTOMOOR_TOKEN']}"})
for f in r.json()["features"]: # GeoJSON, largest first
print(f["properties"]["contour"], f["geometry"]["type"])Route your first delivery today.
Free for 10,000 requests a day; a matrix cell is one request.