lookup_geography: Look up Geography Codes

View source: R/geography.R

lookup_geographyR Documentation

Look up Geography Codes

Description

Search for UK geography codes by name. Returns matching geographies from local authorities, regions, wards, and other levels.

Usage

lookup_geography(search_term, dataset_id = "NM_1_1", type = NULL)

Arguments

search_term

Name or partial name to search (e.g., "London", "Manchester")

dataset_id

Dataset to search in (default: "NM_1_1")

type

Optional geography TYPE code to filter results

Value

Tibble of matching geographies with codes and names

Examples


lookup_geography("London")
lookup_geography("Manchester")
lookup_geography("Birmingham", type = "TYPE464")  # Local authorities only


nomisdata documentation built on Feb. 10, 2026, 5:10 p.m.