APIs
Isochrone API
An isochrone API returns the area you can reach from a point within a travel-time budget — everywhere within a fifteen-minute drive, say. oslew answers with the grid cells, at a size you choose, that the road network reaches in time, each with its earliest arrival, plus the outline of those cells ready to draw on a map. Budgets run up to 3,600 seconds on the driving, walking, cycling or rail network, timed at free-flow speeds.
Last reviewed
An isochrone request names a starting point, a budget and a network: GET /v1/isochrone?at=lat,lon&seconds=…&profile=driving&level=…. It is the right tool whenever the question is about an area rather than a destination — who lives within reach of a clinic, which streets a depot can serve, where a new hire could live and still get to the office.
How the area is found
- The starting point is moved to its nearest junction in the profile’s network, and
snappedreports where and how far. The time from your point to that junction is not counted. - Every junction reachable from there within the budget is found, each with its earliest arrival, on the same network and speeds that time a route.
- Each reached junction falls in one grid cell at the level you chose. A cell is in the answer if any junction inside it was reached, and its time is the earliest arrival at any of them.
- The outer edges of the reached cells are traced into rings, which become the
polygon.
Two consequences follow from step three. The outline is generous by up to one cell, because a cell counts once any corner of the network inside it is reached. And a cell with no junction in it is never reached, so parks, water and long blocks appear as holes. Both effects shrink as the level gets finer.
Picking a cell level
level sets the size of the cells, and each level’s cells are half the width of the level before. Coarser levels mean fewer cells, a smoother outline and a smaller response; finer levels follow the roads more closely and show every gap between them. Choose the coarsest level that still looks right at the zoom you will draw.
| Level | Suits |
|---|---|
| 12 | An hour’s drive, or a region seen at a glance |
| 13 | A drive across a city |
| 14 | The default: a short drive, a long walk or a bicycle ride |
| 15 | A walk of ten or twenty minutes |
| 16 | A short walk drawn at street scale |
For the same area, each level finer means about four times as many cells, so a fine level on a long budget produces a large answer for little visible gain. Cells and levels explains the grid itself.
Reading the answer
cells lists every reached cell with three fields. cell is a 64-bit integer id: JavaScript holds it exactly but prints a different, shorter number, so convert it with BigInt before storing or using it as a key. seconds is the earliest arrival anywhere in the cell. bbox is a padded box that certainly contains the cell — about three cells wide, overlapping its neighbours — which suits a quick containment test and is wrong for drawing.
polygon is what you draw. It is a list of rings of [lat, lon] corners, and three things about it catch people out: the rings are not labelled as outlines or holes (a ring inside an odd number of other rings is a hole), they are not closed (GeoJSON wants the first corner repeated at the end), and they are latitude first where GeoJSON wants longitude first. The isochrones guide has a converter in Python and TypeScript, and the commute-time map puts one on a MapLibre map end to end.
Why not a radius
A circle of fixed radius treats every direction alike, and road networks do not. A motorway stretches reach along its length and offers nothing between its junctions; a river with two bridges pinches it; a one-way system pushes it off-centre. A catchment drawn as a circle therefore over-counts the people behind a barrier and under-counts those along a fast corridor. When the decision is where to put a site, which postcodes a service can promise or which customers a store should target, drawing the area by travel time is the difference between a plausible map and a correct one.
Isochrones also compare fairly. Drawn at the same budget, level and profile, the catchments of two candidate sites are measured the same way, so the comparison holds even where the absolute reach is optimistic.
Free-flow reach
Every edge is timed at its posted limit or its road class’s speed, with nothing for signals, junctions or queues. Off-peak, and on foot or by bicycle, that is close to what people experience. For a drive at peak hours it is the best case, and the area drawn is larger than commuters will reach. Free-flow versus traffic-aware routing covers when that matters. A driving isochrone can reach out over current speeds only where an operator has applied a traffic feed, which is part of Enterprise; ask with profile=live and check that engine begins with live/, because without a feed the answer silently falls back to free-flow.
Ask about the address, not the cell
An isochrone answers for cells. For “can this particular customer be reached in ten minutes”, ask about that customer: a distance matrix row covers many addresses at once, and a route covers one. Both answer for the point itself rather than for the cell it happens to fall in, and neither is subject to the generous edge.
What it costs
Each isochrone is one request against the routing rate, whatever its budget or level, so three bands cost three requests. On the Routing plan, at $299 a month, that rate is 5 requests a second sustained, burst 25; the Platform plan, which also carries the vector basemap to draw on, raises it to 20 requests a second sustained, burst 100. The search itself is quick, and an answer changes only with a new data release, so cache it per point, budget, level and profile.
Limits, stated plainly
- The longest budget is 3,600 seconds, and the budget is time only; there is no distance-based variant.
- One starting point per request, and the area is measured outward from it. On one-way networks the area from which people could reach the point is a different shape, and this endpoint does not compute it.
- The edge is accurate to a cell, not to a road, and holes follow the gaps between junctions.
- Reach depends on the road data loaded for the area; a point with no road near it is refused with HTTP 400.
- Answers derive from road data licensed ODbL-1.0, share-alike if you distribute a database built from them. See the licensing page.
Bottom line
Use an isochrone when the question is an area defined by travel time. Choose the level for the zoom you draw at, convert the rings on your server, caption driving areas as free-flow, and switch to a matrix or a route the moment the question becomes about one address.
Questions
What is the difference between an isochrone and a radius?
A radius is a circle drawn by straight-line distance; an isochrone is drawn by the roads. Rivers with few bridges, motorways with few junctions and one-way systems make the real reachable area lopsided, so a circle takes in places that are slow to reach and leaves out places along a fast road that are quicker than they look.
How long a travel time can one isochrone cover?
Up to 3,600 seconds. A longer budget is clamped to that rather than refused, and the answer echoes the budget it used. For several bands around one point — ten, twenty and thirty minutes — send one request per band; each counts once against the routing rate.
Are rush-hour isochrones accurate?
They are optimistic. Travel times are free-flow: the posted limit or the road class’s speed, with nothing for signals or congestion, so a drive-time area at peak hours is drawn larger than drivers will find it. Caption it as off-peak, or shrink the budget, unless an Enterprise operator has applied a traffic feed and the engine field confirms it was used.
Why does my isochrone have holes in it?
Because a cell counts as reached only when a road junction inside it was reached. Parks, lakes, rail yards and long blocks with no junction come back empty, and finer cell levels show more of them. A coarser level gives a smoother shape, fewer holes and a smaller answer.
Can I show the isochrone on a web map?
Yes, after a small conversion on your server. The outline arrives as open rings of latitude and longitude with outlines and holes in one list, so swap each pair, close each ring and sort outlines from holes before handing it to a map library as GeoJSON. Keep the request on the server: the key must never reach the browser.