Transport connectivity
The uk_open_data.connectivity module loads the Department for Transport's
transport connectivity metric:
how easily people in each neighbourhood of England and Wales can reach the
places they need, by walking, cycling, public transport and driving.
A score runs from 0 (least connected) to 100 (most). DfT works it out from journey times on the real networks and timetables, the destinations within reach and how far people are willing to travel to each kind. It measures the chance to travel, not the trips people make.
load_connectivity()
from uk_open_data.connectivity import load_connectivity
scores = load_connectivity()
scores[["geography_code", "public_transport_overall", "all_modes_overall"]]
It returns one row per 2021 neighbourhood (Lower layer Super Output Area):
35,672 rows, 33,755 in England and 1,917 in Wales. geography_code joins to
boundaries, statistics and the deprivation index.
The table is pandas or polars, whichever you have.
Each other column is one score, named mode first, then purpose:
| Mode | Purposes |
|---|---|
walking_, cycling_, driving_ |
employment, education, healthcare, leisure_and_community, shopping, residential, overall |
public_transport_ |
the same, except that DfT calls work business |
all_modes_ |
the same purposes, for every mode together. all_modes_overall is DfT's single overall score |
residential is travel to other homes, to see people. DfT's notes say to
compare a score with the same score elsewhere, and not one mode with another.
In the analyses
Reach against connectivity ranks every neighbourhood by one way of travelling's overall score, cuts them into fifths, and sets the people a charity reaches in the least-connected fifth against the residents there.
Keeping the scores on this machine
The published file is 68 MB, so fetching it on every run is slow. Keep the scores once, when a server is built:
from uk_open_data.connectivity import download_connectivity
download_connectivity()
From then on load_connectivity() reads the copy, from the data folder beside
the postcode table (see Postcodes), and uses no network.
connectivity_path() says where the copy is, or None when there is none, and
kept_connectivity_note() gives the note it was kept with, such as when it was
fetched, so a result can cite it.
What is left out
The file also holds scores for 2021 output areas, for local authorities and for regions. The local authority scores are for the councils of 2022, and are given by name with no code, so they do not join to today's councils. The loader reads only the neighbourhood scores. The output area scores could be added the same way if someone needs them.
The source and how to credit it
| Publisher | Department for Transport |
| Edition | 2025, for journeys in October to December 2024. DfT calls it experimental statistics, and plans a yearly update |
| Licence | Open Government Licence v3.0, as for everything on gov.uk |
| Credit | Source: Department for Transport, transport connectivity metric 2025. Contains public sector information licensed under the Open Government Licence v3.0. |
The file's own metadata says license: TBA. That sets no other terms, so the
package uses the licence gov.uk publishes it under.
The loader fails with a ValueError naming the connectivity metric if the file
loses the sheet or the columns it reads, or gains a score it does not know.
list_datasets() lists it as dft-connectivity-2025, and a weekly check fetches
it to make sure it still answers.