Skip to content
jhellingsdataPublic

About

Collection of topojson boundaries to be used for building map visualisations

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

map-data

Collection of topojson boundaries to be used for building map visualisations

Available data:

UK

Need just Wales, a region, or a Combined Authority? See the UK filtering guide. It covers pre-filtered nation files, filtering in Altair / Vega-Lite, and lookup tables (LAD → country, region, combined authority, ITL; LSOA → MSOA → LAD).

Administrative:

OECD/Eurostat:

  • ITL1 - International Territorial Level 1 (UK): 2025, 2021
  • ITL2 - International Territorial Level 2 (UK): 2025, 2021
  • ITL3 - International Territorial Level 3 (UK): 2025, 2021
  • NUTS1 - Nomenclature of Territorial Units for Statistics 1: (UK 2018), (England & Wales 2015)
  • NUTS2 - Nomenclature of Territorial Units for Statistics 2: (UK 2018), (England & Wales 2015),
  • NUTS3 - Nomenclature of Territorial Units for Statistics 3: (UK 2018), (England & Wales 2015)

Census:

  • Lower layer Super Output Areas (England & Wales): 2021, 2011, 2001
  • Middle layer Super Output Areas (England & Wales): 2021, 2011, 2001

Electoral:

Home Nations:

Nations (pre-filtered): ENG, WLS, SCT, NIR versions of LAD May 2026 and Dec 2025 and Westminster constituencies Jul 2024; earlier LAD versions where codes changed (England May 2023 and May 2021, Scotland Dec 2018 and Dec 2016); plus ENG, WLS versions of LSOA and MSOA 2021. See the filtering guide.

Lookups: LAD Dec 2025 → country, region, combined authority, ITL, LSOA 2021 → MSOA → LAD

High resolution (gbr/full/): Near full-resolution versions, for zooming in on or filtering to small areas. These also include land area (area, m²) taken from the ONS full resolution (BFC, clipped to coastline) boundaries, which is useful for density calculations. Files are large (4–82 MB), so use them for subsets and local work, not whole-UK web charts.

Source and processing details for pipeline-built files are in metadata/.

USA

Cities

  • New York:

World



Mapping with TopoJSON in Vega-Lite / Altair

  1. Get the raw GitHub file link to any of the TopoJSONs:

Note: all TopoJSONs in this repo use the geog feature key.

In Altair (Python)

import altair as alt

topo_url = "https://raw.githubusercontent.com/jhellingsdata/map-data/refs/heads/main/gbr/ITL1_UK_2021.json"
data = alt.Data(url=topo_url, format=alt.DataFormat(feature='geog', type='topojson'))

alt.Chart(data).mark_geoshape().project(
    type='mercator'     # Find other projections here: https://vega.github.io/vega/docs/projections/
)

In Vega-Lite:

{
    "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
    "data": {
        "url": "https://raw.githubusercontent.com/jhellingsdata/map-data/refs/heads/main/gbr/ITL1_UK_2021.json",
        "format": {"feature": "geog", "type": "topojson"}
    },
    "mark": {"type": "geoshape"},
    "projection": {"type": "mercator"}
}

TopoJSON works a bit different than GeoJSON in Vega-Lite/Altair. We set the 'feature' instead of the property for xyz..

About

Collection of topojson boundaries to be used for building map visualisations

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages