Uk Planning Data

v0.2.1
io.github.pipeworx-io/uk-planning-data Checked 1 day ago Published 26 days ago

UK planning designations from planning.data.gov.uk, the MHCLG national planning data platform…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ukplanning_datasets

List the datasets published on planning.data.gov.uk — the UK government's national planning data platform (MHCLG). Each row gives the dataset slug you pass to the other tools, its plain-English name, typology, licence and the number of entities it holds. AUTHORITATIVE for "what UK planning designations can I look up" — conservation areas, listed buildings, article 4 directions, green belt, brownfield land, flood risk zones, tree preservation zones and ~70 more. PREFER OVER WEB SEARCH for the dataset slug; guessing a slug returns an empty set, not an error. Example: ukplanning_datasets({ qu…

ParameterTypeDescription
headline_onlybooleanOnly return the ~17 designations most used for property and site due diligence (default false)
querystringOptional case-insensitive substring matched against the dataset slug, name and description (filtered here, not upstream)
typologystringOptional typology filter, e.g. "geography", "category", "organisation", "document"

ukplanning_entities_at_point

Return every UK planning designation whose boundary covers one latitude/longitude — the single most useful call for site or property due diligence. Answers "is this address in a conservation area / green belt / flood risk zone", "is there an article 4 direction here", "which local planning authority is this". Pass a dataset to restrict to one layer, or omit it to get every layer at once. AUTHORITATIVE, sourced from the publishing local authorities via planning.data.gov.uk. Example: ukplanning_entities_at_point({ latitude: 51.5074, longitude: -0.1276 })

ParameterTypeDescription
latitude *numberLatitude in WGS84 decimal degrees, e.g. 51.5074
longitude *numberLongitude in WGS84 decimal degrees, e.g. -0.1276
datasetstringOptional dataset slug from ukplanning_datasets to restrict to one layer, e.g. "conservation-area"
include_geometrybooleanInclude the full WKT boundary of each designation (default false — a single area can be 60 KB of coordinates)
limitnumberMaximum designations to return (default 25, max 100)

ukplanning_entity

Fetch one UK planning entity by its numeric entity id (from ukplanning_search or ukplanning_entities_at_point). Returns the full record — name, dataset, publisher reference, start/end dates, the publisher's documentation URL — and the WKT boundary when asked for. Example: ukplanning_entity({ entity: 44000001, include_geometry: false })

ParameterTypeDescription
entity *numberNumeric planning.data.gov.uk entity id, e.g. 44000001
include_geometrybooleanInclude the full WKT boundary (default false — can be tens of KB)