# Live UK traffic, on the map and in the ETA

The map at [mapmap.ai/map](https://mapmap.ai/map) now paints live congestion on England's motorway and A-road network, fed by our National Traffic Information Service subscription and refreshed every 60 seconds. Since 13 August the routing engine reads the same feed: on the covered network, live measured speeds shape ETAs and route choice for any request that carries a departure time, and the section below says exactly how far that goes and where it stops.

## What the UK flow layer actually draws

The layer draws only the congested subset of the network, coloured by how far the live speed has fallen below that link's own profile speed. The publisher on our box compares the fused live speed against the profile speed the feed supplies for the same link and direction, then classifies the ratio: 0.85 and above is free, 0.6 and above is moderate, 0.35 and above is slow, anything below that is severe. Free links are never painted. That is deliberate: an uncongested motorway should look like the base map, not like green spaghetti laid over it. Where the feed gives no profile speed, the link's state is unknown, so it is left off the layer rather than graded against a speed we would have to assume. The collection says how many links that was: `unknown_links` out of `joined_links`. When the feed drops a link's profile speed for a short gap, the last real one is carried for a bounded time and counted in `carried_links`; after that the link is unknown.

The result is a plain GeoJSON file served next to the tiles, which the map fetches directly with no gateway in the path:

```sh
curl -fsS https://tiles.mapmap.ai/overlays/traffic-uk-flow.geojson \
  | python3 -c 'import json,sys; d=json.load(sys.stdin); print(d["properties"]); print(d["features"][0])'
```

```json
{
  "generated_at": "2026-11-25T16:44:47Z",
  "source_ts": "2026-11-25T16:44:30Z",
  "stale": false,
  "joined_links": 54258,
  "unknown_links": 2,
  "carried_links": 0,
  "attribution": "Powered by National Highways' Transport Data Feeds"
}
{
  "type": "Feature",
  "properties": {
    "level": "moderate", "speed_kph": 24,
    "link_id": "d8ecd6ad-b141-4ab5-ac10-690ea06caad6",
    "road": "A185", "name": "A185 Clockwise",
    "freeflow_kph": 32.0, "ratio": 0.75
  },
  "geometry": { "type": "LineString", "coordinates": [
    [-1.54596, 54.95333], [-1.54595, 54.95332], [-1.54595, 54.95331], [-1.54595, 54.95329],
    [-1.54597, 54.95328], [-1.54599, 54.95327], [-1.54601, 54.95326], [-1.54601, 54.95326]
  ] }
}
```

On the map itself it is one toggle, labelled Live traffic, in the layers panel. `?traffic=1` on the URL arrives with it already on. The layer refreshes on a 60 second tick while it is on, which matches the box timer that republishes the file and the 60 second cache TTL the tiles host serves mutable names with. Base map © OpenStreetMap contributors; the traffic lines carry their own attribution line in the map's attribution control.

## Does live traffic change the route you get back

Yes, since 13 August, on the roads the feed covers. Send a `date_time` with your request and the same measured link speeds you see on the flow layer are written into the routing graph's live speed channel, refreshed every minute. The engine blends them by time to arrival: live speeds dominate the first stretch of a route, fade over the hour ahead into weekly speed profiles built from the same feed's history, and fall back to normal graph speeds beyond that and off the covered network. On a jammed stretch the ETA rises, and when the delay is bad enough the route goes round it. Departure time matters too: the same journey asked for at 08:30 and 03:00 returns different durations and sometimes different roads.

Scope, stated plainly: this covers National Highways' strategic road network in England, which is the motorways and major trunk A roads the feed measures. Local roads carry no live data. On car and truck routes in Great Britain their durations include a typical junction and congestion delay from Department for Transport statistics (the `eta_calibration` block, method `gb_typical_delay_v1`), which changes the time and never the route. Incident records, the pins on the map, still influence costing nothing; only measured speeds do. A request with a departure time and alternates gets live-traffic alternates re-timed on the same live speeds, but no route avoids a closure or an incident because it was reported. There is still no `incident_avoided` kind in route rationale, because a divergence can never honestly be attributed to an input the costing never saw. If you want to know what data actually stood behind an ETA, send `traffic: true` and the response says so per leg: the share of distance carried by live or forecast records, a confidence band, and the sources involved. When a live claim stands, it also carries `traffic.congestion.delay_s`: the time lost against National Highways' own typical speeds, summed only over stretches of the route with a live NTIS record matched in the route's direction of travel, never negative and never assumed where no typical speed exists. Where there is no data we say so, rather than dressing a default speed up as knowledge.

## How does the feed reach us

NTIS pushes to us rather than the other way round, so the subscriber has to run a receiver. National Highways sends DATEX II v2.3 as SOAP `putDatex2Data` messages over HTTPS, gzip-compressed and usually chunked, to an endpoint we expose at `/ntis/ingest`. That receiver does almost nothing on purpose: it authenticates with Basic auth, checks the source address against an allowlist, decompresses, writes the raw XML into an append-only archive, and answers with the acknowledgement envelope the interface definition specifies. Every derived view is built by a separate consumer reading that archive, so a parsing mistake can never cost us the original data.

Two consumers run behind it on 60 second timers. The first folds the last 5 minutes of archived payloads into one snapshot per link and direction, carrying the fused speed, the profile speed, the journey time and the vehicle flow rate. The second joins that snapshot to link geometry and writes the overlay file above.

## Why the geometry needed a one-time map match

NTIS publishes measurements against its own network model link identifiers, and nothing in our stack could turn one of those into a drawable line. The published vector tiles use the stock OpenMapTiles profile, which drops OSM way identifiers from the transportation layer, so recolouring existing road lines by speed was never available to us. We solved it once rather than continuously: the NTIS network model was map-matched through Valhalla in a single offline pass, producing 99.8% clean matches across 64,778 directed links, and that baked geometry file is what the per-minute publisher joins against. The live path stays cheap because the expensive part already happened.

## What it does not cover, and what happens when the feed stops

The coverage boundary is the most important limitation on this page, and it is narrower than "UK traffic" sounds. The NTIS network model is an England network. We took a snapshot of the published overlay on 9 August 2026 and counted what was in it: 4,796 congested segments, of which 140 were M roads, 4,619 were A roads and 37 were B roads. Nothing sat north of the Scottish border and nothing sat in Wales. So the layer reaches further down the road hierarchy than the motorway network alone, but Scotland, Wales and Northern Ireland run their own arrangements and this feed does not carry them, and plenty of English roads are simply not modelled. An empty screen over a residential street means the feed has nothing to say about that street, not that the street is clear.

The rest of the honest list:

| Limit | The specifics |
|---|---|
| No delay estimate of our own, no rationale kind | `delay_s` is a sum over National Highways' published typical and live speeds on the England strategic road network, not a MapMap model or forecast, and it says nothing about local roads, Scotland or Wales. There is no `traffic_delay_avoided` or `incident_avoided` rationale kind. Traffic is not a preference field, so no divergence can honestly be attributed to it |
| Latency | The snapshot folds a 5 minute window, rebuilds every 60 seconds, and the client refreshes every 60 seconds against a 60 second cache TTL |
| Staleness | The publisher stamps `stale: true` when the snapshot input is more than 5 minutes old. The layer then greys out and the legend reads "Feed delayed: shown greyed, not current" |
| Feed down | The last good data stays on screen and the next 60 second tick retries. If one of the flow or closure files fails the legend says the view is incomplete; if none load, it says the feed is unreachable and nothing is drawn |
| Not self-serve | NTIS registration is no longer self-service, so you cannot reproduce this layer on a self-hosted deployment without your own subscription |

That last one deserves its own sentence. As of 3 August 2026 the old registration route is dead: `trafficengland.com/subscribers` redirects to a page that returns 404, and the subscriber portal hostname no longer resolves at all. The service itself is alive and its products are being re-homed onto the National Highways developer portal one at a time, but no flow or measured-data product is in that catalogue yet. Getting access today means emailing the team doing the migration and waiting. If you are planning a UK traffic feature on a [self-hosted MapMap deployment](/news/self-hosting-docker-distro), budget for that conversation rather than for an afternoon of integration.

## What is available to API clients today

Closures are an API; live flow is not. `POST /v1/incidents/along` takes a route shape and returns the closures and lane restrictions on it, with each one's position along the route, its cause, severity and lane counts, from the National Highways Road and Lane Closures feed under the National Highways Transport Data Feeds licence (based on OGL v2.0). It bills as one Standard call, never Premium, and answers 501 on deployments where no incident source is configured. Its response always carries a `sources` array with a coverage note, so an empty `incidents` list reads as "nothing on the covered network near this route" rather than "the road is clear". The full parameters and response shape are in the [analysis API guide](/docs/analysis).

Live flow has no equivalent endpoint of its own. It reaches callers in two places instead: as the map overlay above, and as the speeds behind a time-dependent ETA, with `traffic: true` reporting per leg what data actually stood behind that ETA. There is no endpoint that hands you the flow records themselves, because the overlay is scoped to what our subscription covers and an API would imply a coverage promise we cannot make.

## Try it

Open the [live map](https://mapmap.ai/map), turn on Live traffic in the layers panel, and watch the legend line under the swatches: it tells you how many congested stretches and closures are actually drawn, and it tells you when the feed is late instead of quietly showing you yesterday. If you want to know how the base map underneath is built and styled, the post on [vector tiles and styles](/news/vector-tiles-and-styles) covers the tile side, and [the case for sovereign navigation](/news/sovereign-navigation) covers why we run the whole pipeline ourselves rather than reselling someone else's traffic.
