diff --git a/api/app/queries/scottish_postcodes.ts b/api/app/queries/scottish_postcodes.ts index f31c38809..fe9ca9e43 100644 --- a/api/app/queries/scottish_postcodes.ts +++ b/api/app/queries/scottish_postcodes.ts @@ -29,7 +29,9 @@ export interface ScottishPostcodeRow { local_government_district_1991: string | null; uk_parliamentary_constituency: string | null; scottish_parliamentary_region: string | null; + scottish_parliamentary_region_2021: string | null; scottish_parliamentary_constituency: string | null; + scottish_parliamentary_constituency_2021: string | null; health_board_area: string | null; health_board_area_2006: string | null; health_board_area_1995: string | null; @@ -83,7 +85,9 @@ export interface ScottishPostcodeRow { local_government_district_1991_code: string | null; uk_parliamentary_constituency_code: string | null; scottish_parliamentary_region_code: string | null; + scottish_parliamentary_region_2021_code: string | null; scottish_parliamentary_constituency_code: string | null; + scottish_parliamentary_constituency_2021_code: string | null; health_board_area_code: string | null; health_board_area_2006_code: string | null; health_board_area_1995_code: string | null; @@ -123,8 +127,10 @@ const SELECT_COLUMNS = ` local_government_district_1995_name AS local_government_district, local_government_district_1991_name AS local_government_district_1991, uk_parliamentary_constituency_2024_name AS uk_parliamentary_constituency, - scottish_parliamentary_region_2021_name AS scottish_parliamentary_region, - scottish_parliamentary_constituency_2021_name AS scottish_parliamentary_constituency, + scottish_parliamentary_region_2025_name AS scottish_parliamentary_region, + scottish_parliamentary_region_2021_name AS scottish_parliamentary_region_2021, + scottish_parliamentary_constituency_2025_name AS scottish_parliamentary_constituency, + scottish_parliamentary_constituency_2021_name AS scottish_parliamentary_constituency_2021, health_board_area_2019_name AS health_board_area, health_board_area_2006_name AS health_board_area_2006, health_board_area_1995_name AS health_board_area_1995, @@ -177,8 +183,10 @@ const SELECT_COLUMNS = ` local_government_district_1995_code AS local_government_district_code, local_government_district_1991_code AS local_government_district_1991_code, uk_parliamentary_constituency_2024_code AS uk_parliamentary_constituency_code, - scottish_parliamentary_region_2021_code AS scottish_parliamentary_region_code, - scottish_parliamentary_constituency_2021_code AS scottish_parliamentary_constituency_code, + scottish_parliamentary_region_2025_code AS scottish_parliamentary_region_code, + scottish_parliamentary_region_2021_code AS scottish_parliamentary_region_2021_code, + scottish_parliamentary_constituency_2025_code AS scottish_parliamentary_constituency_code, + scottish_parliamentary_constituency_2021_code AS scottish_parliamentary_constituency_2021_code, health_board_area_2019_code AS health_board_area_code, health_board_area_2006_code AS health_board_area_2006_code, health_board_area_1995_code AS health_board_area_1995_code, @@ -251,7 +259,9 @@ export const toJson = (row: ScottishPostcodeRow) => ({ local_government_district_1991: row.local_government_district_1991, uk_parliamentary_constituency: row.uk_parliamentary_constituency, scottish_parliamentary_region: row.scottish_parliamentary_region, + scottish_parliamentary_region_2021: row.scottish_parliamentary_region_2021, scottish_parliamentary_constituency: row.scottish_parliamentary_constituency, + scottish_parliamentary_constituency_2021: row.scottish_parliamentary_constituency_2021, health_board_area: row.health_board_area, health_board_area_2006: row.health_board_area_2006, health_board_area_1995: row.health_board_area_1995, @@ -302,7 +312,9 @@ export const toJson = (row: ScottishPostcodeRow) => ({ local_government_district_1991: row.local_government_district_1991_code, uk_parliamentary_constituency: row.uk_parliamentary_constituency_code, scottish_parliamentary_region: row.scottish_parliamentary_region_code, + scottish_parliamentary_region_2021: row.scottish_parliamentary_region_2021_code, scottish_parliamentary_constituency: row.scottish_parliamentary_constituency_code, + scottish_parliamentary_constituency_2021: row.scottish_parliamentary_constituency_2021_code, health_board_area: row.health_board_area_code, health_board_area_2006: row.health_board_area_2006_code, health_board_area_1995: row.health_board_area_1995_code, diff --git a/build/404.html b/build/404.html index d58f30961..7e4804695 100644 --- a/build/404.html +++ b/build/404.html @@ -4,7 +4,7 @@ Page Not Found | Postcodes.io - + diff --git a/build/assets/js/081ac812.2c751694.js b/build/assets/js/081ac812.2c751694.js deleted file mode 100644 index 4cca3b288..000000000 --- a/build/assets/js/081ac812.2c751694.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[5117],{72792(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>f,default:()=>C,frontMatter:()=>y,metadata:()=>a,toc:()=>b});const a=JSON.parse('{"id":"api/nearest-postcode","title":"Find the Nearest Postcodes","description":"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).","source":"@site/docs/api/nearest-postcode.api.mdx","sourceDirName":"api","slug":"/api/nearest-postcode","permalink":"/docs/api/nearest-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"nearest-postcode","title":"Find the Nearest Postcodes","description":"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).","sidebar_label":"Find the Nearest Postcodes","hide_title":true,"hide_table_of_contents":true,"api":"eJzVPO1y2ziSr9LF/WH5SpYl2U5i3Z9zHI9HM/46Sz7f7DjlgciWhQkIcADQti7lqnuIe8J9kq0GSImkaNlS4mxdqpJIItDobjT6m/gaWHZngt7vwYUyNlQRmuBzM1AJama5kv0o6AVnyDQaC/mQoBlEaELNExoS9IJLtKmWBhgIbiyoMSQ5NLhDdadZMuEhE2IKMoNlFdgJgkkw5GOO0WxGE5SOUGMEoykkWj3ymNspNEKhDE0cc23sZitoBgnTLEaLmvD/GkgWY9ALkjmSnHBLmJ0sIPxfTPAIrn6drUr4pAaBGYfWHGkIUVrUkCguLYyVds/neBlkOqQFNP6Vco1R0LM6xWZg7FQQPobHiSBs8DERhFdvzIShAeEEYxb0vgaWWze0wF98ZG5aLxhcdw6ge3AQPD19plVMoqRBQ/O67Tb9VyZtkIYhGhM0g1BJi9LSEJYkgoduR7f/NDTua8361X02cJktFzQDO01ojBr9iaEt0ft7YCyzqXE/mlRYkqBEkwxZ7jHNBtBaHgyXFu9QB81grHTMrP9pp0ukyzQOer932+3PTzOI85lMazalzbUYO4hK4vnYSUBOxzEqoUJmMXpeZAeWyYjpudyBpwzw0aKMMIIHbifAIOLGMhkiMGs1H6UWm8Bl5Lgp72CiHmDMMqnIQXEDY61iYGBS4jxGJFEOJ64kyS4T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amdtp0BDUgL0rOYycIx/Iln7SkLd/5Uz8TX+T1C/6J7njLDY/HRbieCcVcudyz4mum++U05hH6vYFdy9fe5GUwUvb73e/D1K2VTrrR4eqKf/0qRXlP//fNcszkVGXFDn6PZfU3PcqVxmRneTXiDe6Vqqc/vQpJTp5BFSt+CZvAFp8UrsJwdnSCLUDua/OMDpyMKExduhyoZmeOjYfD09E+YtSSh","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Autocomplete Search a Postcode","permalink":"/docs/api/postcode-lookup"},"next":{"title":"Get a Random Postcode","permalink":"/docs/api/random-postcode"}}');var n=i(31325),o=i(31736),r=i(47812),s=i.n(r),l=i(38616),c=i.n(l),d=i(67994),p=i.n(d),u=i(54768),m=i.n(u),h=(i(24909),i(96847),i(78121));const y={id:"nearest-postcode",title:"Find the Nearest Postcodes",description:"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).",sidebar_label:"Find the Nearest Postcodes",hide_title:!0,hide_table_of_contents:!0,api:"eJzVPO1y2ziSr9LF/WH5SpYl2U5i3Z9zHI9HM/46Sz7f7DjlgciWhQkIcADQti7lqnuIe8J9kq0GSImkaNlS4mxdqpJIItDobjT6m/gaWHZngt7vwYUyNlQRmuBzM1AJama5kv0o6AVnyDQaC/mQoBlEaELNExoS9IJLtKmWBhgIbiyoMSQ5NLhDdadZMuEhE2IKMoNlFdgJgkkw5GOO0WxGE5SOUGMEoykkWj3ymNspNEKhDE0cc23sZitoBgnTLEaLmvD/GkgWY9ALkjmSnHBLmJ0sIPxfTPAIrn6drUr4pAaBGYfWHGkIUVrUkCguLYyVds/neBlkOqQFNP6Vco1R0LM6xWZg7FQQPobHiSBs8DERhFdvzIShAeEEYxb0vgaWWze0wF98ZG5aLxhcdw6ge3AQPD19plVMoqRBQ/O67Tb9VyZtkIYhGhM0g1BJi9LSEJYkgoduR7f/NDTua8361X02cJktFzQDO01ojBr9iaEt0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flol2nUK/DwcXrjKTWryyzD8xQDErV8G52cXM8zc9RLoGoVDQW/eddttN8z422yasJv9wGDEonwe/bzrfqZSyZgiYkf1Xj7bySyg1kq7FRZxok0WRuULR3ltbUbfSEXTnA30ji/lWz2L6MeSwMyKNpkmdlXg+fiWe22fOM58PQVjxukckMJV2v4Hj5CJrfn+hqqVUktgdnQGftjC8amdtp0BDUgL0rOYycIx/Iln7SkLd/5Uz8TX+T1C/6J7njLDY/HRbieCcVcudyz4mum++U05hH6vYFdy9fe5GUwUvb73e/D1K2VTrrR4eqKf/0qRXlP//fNcszkVGXFDn6PZfU3PcqVxmRneTXiDe6Vqqc/vQpJTp5BFSt+CZvAFp8UrsJwdnSCLUDua/OMDpyMKExduhyoZmeOjYfD09E+YtSSh",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},f=void 0,g={},b=[];function S(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Find the Nearest Postcodes"}),"\n",(0,n.jsx)(s(),{method:"get",path:"/postcodes/{postcode}/nearest",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first)."}),"\n",(0,n.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(c(),{parameters:[{name:"postcode",in:"path",description:"Valid UK postcode to use as the geographic center point for the proximity search",required:!0,style:"simple",explode:!1,schema:{title:"Postcode",example:"SW1A 2AA"}}]}),"\n",(0,n.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Nearest Postcodes Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{type:"array",items:{oneOf:[{title:"Geolocated Postcode",description:"Standard postcode object extended with a distance attribute, indicating how far the postcode is from a supplied geolocation.",allOf:[{type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. May be empty for areas without county-level administration.",example:""},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"},{type:"object",required:["distance"],properties:{distance:{title:"Distance from supplied geolocation",type:"number",format:"double",description:"Distance in metres from specified postcode",example:0}}}]}]},description:"Array of nearest postcodes sorted by distance"}}}}}}}})]})}function C(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(S,{...e})}):S(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/081ac812.9ec2ccd7.js b/build/assets/js/081ac812.9ec2ccd7.js new file mode 100644 index 000000000..6992b320d --- /dev/null +++ b/build/assets/js/081ac812.9ec2ccd7.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[5117],{72792(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>y,default:()=>x,frontMatter:()=>f,metadata:()=>a,toc:()=>S});const a=JSON.parse('{"id":"api/nearest-postcode","title":"Find the Nearest Postcodes","description":"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).","source":"@site/docs/api/nearest-postcode.api.mdx","sourceDirName":"api","slug":"/api/nearest-postcode","permalink":"/docs/api/nearest-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"nearest-postcode","title":"Find the Nearest Postcodes","description":"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).","sidebar_label":"Find the Nearest Postcodes","hide_title":true,"hide_table_of_contents":true,"api":"eJzVPO1SG7mWr3Kq7w/MljG2gSR4/ywhDGGGr8Vms3OHFJG7ZayJWuqR1IBviqp9iH3CfZKtI6k/3TbYCbm7qZrB7paOzjk6Ot/Wt8CQOx0M/ggupTahjKgOPrcDmVBFDJPiJAoGwTklimoD2ZCgHURUh4olOCQYBFfUpEpoIMCZNiAnkGTQ4I7KO0WSKQsJ5zMQHpaRYKYUdEJDNmE0yme0QaqIKhrBeAaJko8sZmYGrZBLjRMnTGmz2QnaQUIUiamhCvH/FggS02AQJAWSDHFLiJnOIfwfhLMIrn/LV0V8Uk2BaItWgTSEVBiqIJFMGJhIZd8XeGlKVIgLKPpXyhSNgoFRKW0H2sw44qNZnHDEhj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w9ZXuLm5EVtb+H3j5Wtt4GKf20FMzVTiDUR31Ngks5kGg6A0/lv28Wnbs8tezaHus0uBUsWXUDm3lQeXJ7Z0Yff9niiGhwGlyV6+w8TEtiraFic7vveu0+10kREMy9lW1vw9RGcno6BdW18mVDgmdaS62/aT9DaOLQk/YnGVN/tvVSpEKJ9Uxfpi4kssJfAVpkYy1PkKTRclFEUnzK3ARNFSUzaX8is6ypcntjJ6RyU+Vvkht1WtG/G3v8GRiOyPMGxRjfOioT8kAn/XQOx1RNkFAzi3KLNRP9fC+vLly41YtFP+9Y3AwqjFKsRLEzQcH40shpcXwxGgYqDa6I776sRH20ZnfxkS/qyEwpf6fUhfMmqyC480fj8i4TTrFEMIcXYvAhHYLKlkomy3xcfR6NJWv1KdXWPirnRAbv06vDi/zDGzF4NQ23gdcvwlY7/btcO0u7apDbv+AYExibJ5+HjXPsZy0wQjYkv1XjbbyixQpaSyK8zjhJvMtcwWjrL6ZE7fWEazjA3462zMtzoW4cOKwOSFL6+JbSW9GN+xFy4gx4mrp9CYMDwHqHClMv/GIkr4VrG/oeykX209yB6doRs2d3wap217oAFqQXwXE1E6hr8w3+Izd7lV/Ux8Ky7M+iddaOYNj6GPZjvhhNmWA8uCb173FVdCIfqDkl3J1N/ndjCV+HPIP4Jv3zCbcq340xM+/iuleMHAH58LzWZVZMQ0fo7yi8kWcqV15Q3vJrzCBWqN1GeXfomZVcg8xW9BO/hKZ+W73qwdnVISUWVpcq8PrI4oTZy7Bq1iZI6PRsHT0/8C1g0fHw==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Autocomplete Search a Postcode","permalink":"/docs/api/postcode-lookup"},"next":{"title":"Get a Random Postcode","permalink":"/docs/api/random-postcode"}}');var o=i(31325),n=i(31736),r=i(47812),s=i.n(r),l=i(38616),c=i.n(l),d=i(67994),p=i.n(d),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const f={id:"nearest-postcode",title:"Find the Nearest Postcodes",description:"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).",sidebar_label:"Find the Nearest Postcodes",hide_title:!0,hide_table_of_contents:!0,api:"eJzVPO1SG7mWr3Kq7w/MljG2gSR4/ywhDGGGr8Vms3OHFJG7ZayJWuqR1IBviqp9iH3CfZKtI6k/3TbYCbm7qZrB7paOzjk6Ot/Wt8CQOx0M/ggupTahjKgOPrcDmVBFDJPiJAoGwTklimoD2ZCgHURUh4olOCQYBFfUpEpoIMCZNiAnkGTQ4I7KO0WSKQsJ5zMQHpaRYKYUdEJDNmE0yme0QaqIKhrBeAaJko8sZmYGrZBLjRMnTGmz2QnaQUIUiamhCvH/FggS02AQJAWSDHFLiJnOIfwfhLMIrn/LV0V8Uk2BaItWgTSEVBiqIJFMGJhIZd8XeGlKVIgLKPpXyhSNgoFRKW0H2sw44qNZnHDEhj4mHPEaTAjXOCCc0pgEg2+BYcYOLfGXPhI7bRAMP/UOoH9wEDw9fcZVdCKFphrn9btd/FMlbZiGIdU6aAehFIYKg0NIknAW2h3d/lPjuG8N69f3WcOVXy5oB2aW4Bg5/pOGpkLvH4E2xKTaPtQpNyhBiUIZMsxh6gfgWg4ME4beURW0g4lUMTHu0U4fSRdpHAz+6He7n59yiMVMohSZ4eYaGluIUtCLiZWAjI5jKrkMiaHRYpEdGiIiogq5A0cZ0EdDRUQjeGBmCgQipg0RIQVijGLj1NA2MBFZboo7mMoHmBAvFRkopmGiZAwEdIqcpxFKlMWJSYGySzjPkF7C15Isy7SQav/hr5RwZpAXlGhEBndASGWm/nMoU2EUDhBTfTsluG4UM3FrX8zyr0iiYnZ19+CBqChoB1yKO2ZSuxgnJvuYEMUZiakwRM1uQyk0vqIitKikuPFE3FJOQyMV4beK3iHPUSZYbKcQRW+NSrWjN3tLFNN4kriWiGrs/oQUUQnDOxwywScRMfRWTm6ZMEpGaWjc/OyxoSpmgvinTET0ER/HKTcs4fQ2ooli99n7xcTc9rv93aA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oeykX209yB6doRs2d3wap217oAFqQXwXE1E6hr8w3+Izd7lV/Ux8Ky7M+iddaOYNj6GPZjvhhNmWA8uCb173FVdCIfqDkl3J1N/ndjCV+HPIP4Jv3zCbcq340xM+/iuleMHAH58LzWZVZMQ0fo7yi8kWcqV15Q3vJrzCBWqN1GeXfomZVcg8xW9BO/hKZ+W73qwdnVISUWVpcq8PrI4oTZy7Bq1iZI6PRsHT0/8C1g0fHw==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,g={},S=[];function b(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Find the Nearest Postcodes"}),"\n",(0,o.jsx)(s(),{method:"get",path:"/postcodes/{postcode}/nearest",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first)."}),"\n",(0,o.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(c(),{parameters:[{name:"postcode",in:"path",description:"Valid UK postcode to use as the geographic center point for the proximity search",required:!0,style:"simple",explode:!1,schema:{title:"Postcode",example:"SW1A 2AA"}}]}),"\n",(0,o.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Nearest Postcodes Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{type:"array",items:{oneOf:[{title:"Geolocated Postcode",description:"Standard postcode object extended with a distance attribute, indicating how far the postcode is from a supplied geolocation.",allOf:[{type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","pfa","date_of_introduction","date_of_termination","index_of_multiple_deprivation","parliamentary_constituency_2024","senedd_constituency","senedd_constituency_no","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).",example:null},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:"Caerdydd Penarth"},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:14},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",required:["admin_district","admin_county","admin_ward","parish","ccg","ccg_id","ced","nuts","lau2","lsoa","msoa","pfa","parliamentary_constituency","parliamentary_constituency_2024","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2"],properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"},{type:"object",required:["distance"],properties:{distance:{title:"Distance from supplied geolocation",type:"number",format:"double",description:"Distance in metres from specified postcode",example:0}}}]}]},description:"Array of nearest postcodes sorted by distance"}}}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/2b8f49f9.144e7984.js b/build/assets/js/2b8f49f9.144e7984.js new file mode 100644 index 000000000..2ac520937 --- /dev/null +++ b/build/assets/js/2b8f49f9.144e7984.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[759],{9856(e,n,t){t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>a,frontMatter:()=>i,metadata:()=>d,toc:()=>h});const d=JSON.parse('{"id":"scottish-postcode/schema","title":"Scottish Postcode Schema","description":"The Scottish Postcode schema represents the full set of geographies the Scottish Postcode Directory (SPD) ships against a postcodepostcode endpoint.","source":"@site/docs/scottish-postcode/schema.mdx","sourceDirName":"scottish-postcode","slug":"/scottish-postcode/schema","permalink":"/docs/scottish-postcode/schema","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Schema","title":"Scottish Postcode Schema"},"sidebar":"docsSidebar","previous":{"title":"Lookup","permalink":"/docs/terminated-postcode/lookup"},"next":{"title":"Lookup","permalink":"/docs/scottish-postcode/lookup"}}');var s=t(31325),r=t(31736);const i={sidebar_label:"Schema",title:"Scottish Postcode Schema"},l=void 0,c={},h=[{value:"Example",id:"example",level:2},{value:"Reference",id:"reference",level:2},{value:"Identity & spatial",id:"identity--spatial",level:3},{value:"Administrative geographies",id:"administrative-geographies",level:3},{value:"Parliamentary",id:"parliamentary",level:3},{value:"Health",id:"health",level:3},{value:"Statistical & census",id:"statistical--census",level:3},{value:"codes object",id:"codes-object",level:3}];function o(e){const n={admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:["The Scottish Postcode schema represents the full set of geographies the Scottish Postcode Directory (SPD) ships against a postcode: administrative, electoral, health, statistical, and census. It is returned by the ",(0,s.jsx)(n.code,{children:"/scotland/postcodes/:postcode"})," endpoint."]}),"\n",(0,s.jsxs)(n.p,{children:["Top-level fields hold the ",(0,s.jsx)(n.strong,{children:"canonical (latest)"})," value for each datapoint. Year-suffixed fields surface prior versions where SPD publishes them (e.g. ",(0,s.jsx)(n.code,{children:"data_zone"})," is the 2022 Data Zone; ",(0,s.jsx)(n.code,{children:"data_zone_2011"})," and ",(0,s.jsx)(n.code,{children:"data_zone_2001"})," are historical baselines). The ",(0,s.jsx)(n.code,{children:"codes"})," object mirrors the same datapoints with their GSS / official codes."]}),"\n",(0,s.jsx)(n.admonition,{title:"Scottish Parliament 2025 boundaries",type:"note",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"scottish_parliamentary_constituency"})," and ",(0,s.jsx)(n.code,{children:"scottish_parliamentary_region"})," now hold the ",(0,s.jsx)(n.strong,{children:"2025"})," designation (Second Review of Scottish Parliament Boundaries, SSI 2025/285), which took effect at the 7 May 2026 Holyrood election - boundaries ",(0,s.jsx)(n.strong,{children:"and"})," names changed. The superseded 2021 values moved to ",(0,s.jsx)(n.code,{children:"scottish_parliamentary_constituency_2021"})," and ",(0,s.jsx)(n.code,{children:"scottish_parliamentary_region_2021"}),". Consumers pinned to the 2021 boundaries should read the ",(0,s.jsx)(n.code,{children:"_2021"})," fields."]})}),"\n",(0,s.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",children:'{\n "status": 200,\n "result": {\n "postcode": "AB10 1XG",\n "postcode_district": "AB10",\n "postcode_sector": "AB10 1",\n "incode": "1XG",\n "outcode": "AB10",\n "user_type": "0",\n "date_of_introduction": "199406",\n "date_of_deletion": null,\n "longitude": -2.10250,\n "latitude": 57.14945,\n "eastings": 393859,\n "northings": 806073,\n "council_area": "Aberdeen City",\n "electoral_ward": "Midstocket/Rosemount",\n "uk_parliamentary_constituency": "Aberdeen South",\n "scottish_parliamentary_region": "North East Scotland",\n "scottish_parliamentary_region_2021": "North East Scotland",\n "scottish_parliamentary_constituency": "Aberdeen Central",\n "scottish_parliamentary_constituency_2021": "Aberdeen Central",\n "health_board_area": "Grampian",\n "integration_authority": "Aberdeen City",\n "data_zone": "West End North - 01",\n "data_zone_2011": "S01006571",\n "intermediate_zone": "West End North",\n "output_area": "S00136537",\n "locality": "Aberdeen",\n "settlement": "Aberdeen, Milltimber, and Peterculter",\n "civil_parish": "Old Machar",\n "island": "Mainland of Scotland",\n "national_park": null,\n "travel_to_work_area": "Aberdeen",\n "lau_level_1": "Aberdeen City",\n "itl_level_2": "North Eastern Scotland",\n "itl_level_3": "Aberdeen City and Aberdeenshire",\n "urban_rural_6_fold": "1",\n "urban_rural_8_fold": "1",\n "scottish_index_of_multiple_deprivation": 6414,\n "census_household_count": 0,\n "census_population_count": 0,\n "codes": {\n "council_area": "S12000033",\n "electoral_ward": "S13002841",\n "uk_parliamentary_constituency": "S14000061",\n "scottish_parliamentary_region": "S17000026",\n "scottish_parliamentary_region_2021": "S17000014",\n "scottish_parliamentary_constituency": "S16000151",\n "scottish_parliamentary_constituency_2021": "S16000074",\n "health_board_area": "S08000020",\n "integration_authority": "S37000002",\n "data_zone": "S01013550",\n "intermediate_zone": "S02002527",\n "locality": "S19000001",\n "settlement": "S20000001",\n "civil_parish": "S07000001",\n "national_park": null,\n "travel_to_work_area": "S22000047"\n }\n }\n}\n'})}),"\n",(0,s.jsx)(n.h2,{id:"reference",children:"Reference"}),"\n",(0,s.jsx)(n.h3,{id:"identity--spatial",children:"Identity & spatial"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Royal Mail postcode (canonical formatting with single space)."}),(0,s.jsx)(n.td,{children:'"AB10 1XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"pc_compact"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Postcode with all spaces removed."}),(0,s.jsx)(n.td,{children:'"AB101XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode_district"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Equivalent to the outward code."}),(0,s.jsx)(n.td,{children:'"AB10"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode_sector"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Outward code plus the first character of the inward code."}),(0,s.jsx)(n.td,{children:'"AB10 1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"outcode"})," / ",(0,s.jsx)(n.code,{children:"incode"})]}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Outward / inward halves of the postcode."}),(0,s.jsx)(n.td,{children:'"AB10" / "1XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"user_type"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:'SPD user type ("0" = small user, "1" = large user).'}),(0,s.jsx)(n.td,{children:'"0"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"date_of_introduction"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Date the postcode was introduced (YYYYMM)."}),(0,s.jsx)(n.td,{children:'"199406"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"date_of_deletion"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsxs)(n.td,{children:["Date the postcode was deleted (YYYYMM); ",(0,s.jsx)(n.code,{children:"null"})," for live postcodes."]}),(0,s.jsx)(n.td,{children:"null"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"linked_small_user_postcode"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"For large-user postcodes, the linked small-user postcode (if any)."}),(0,s.jsx)(n.td,{children:"null"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"longitude"})," / ",(0,s.jsx)(n.code,{children:"latitude"})]}),(0,s.jsx)(n.td,{children:"number | null"}),(0,s.jsx)(n.td,{children:"WGS84 coordinates."}),(0,s.jsx)(n.td,{children:"-2.10250"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"eastings"})," / ",(0,s.jsx)(n.code,{children:"northings"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"OS National Grid grid reference (1m resolution)."}),(0,s.jsx)(n.td,{children:"393859"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"split_indicator"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Marks postcodes that span more than one administrative unit."}),(0,s.jsx)(n.td,{children:'"0"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"grid_link_indicator"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"How the postcode was linked to its grid reference."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"grid_link_positional_accuracy"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Positional accuracy of the grid reference."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"never_digitised"})}),(0,s.jsx)(n.td,{children:"boolean"}),(0,s.jsx)(n.td,{children:"True if the postcode has never been digitised (no grid reference established)."}),(0,s.jsx)(n.td,{children:"false"})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"administrative-geographies",children:"Administrative geographies"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"council_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 council area name (current unitary authority)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"electoral_ward"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 electoral ward name."}),(0,s.jsx)(n.td,{children:'"Midstocket/Rosemount"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"local_government_district"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1995 local government district name (pre-unitary boundary)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"local_government_district_1991"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1991 local government district name (historical)."}),(0,s.jsx)(n.td,{children:'"City of Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"enterprise_region"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2008 enterprise region name."}),(0,s.jsx)(n.td,{children:'"Highlands and Islands"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"registration_district"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2007 registration district code. (SPD provides codes only \u2014 no names.)"}),(0,s.jsx)(n.td,{children:'"RD20"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"strategic_development_planning_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2013 SDPA code."}),(0,s.jsx)(n.td,{children:'"SD01"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"civil_parish"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1930 Scottish civil parish name (latest historical baseline)."}),(0,s.jsx)(n.td,{children:'"Old Machar"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"island"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:'Island name; "Mainland of Scotland" for non-island postcodes.'}),(0,s.jsx)(n.td,{children:'"Mainland of Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"national_park"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2010 national park name (Cairngorms / Loch Lomond and the Trossachs)."}),(0,s.jsx)(n.td,{children:"null"})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"parliamentary",children:"Parliamentary"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"uk_parliamentary_constituency"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2024 UK Parliamentary constituency."}),(0,s.jsx)(n.td,{children:'"Aberdeen South"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_region"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"2025"})," Scottish Parliamentary region (current; SSI 2025/285, 7 May 2026 election)."]}),(0,s.jsx)(n.td,{children:'"North East Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_region_2021"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2021 Scottish Parliamentary region (superseded)."}),(0,s.jsx)(n.td,{children:'"North East Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_constituency"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"2025"})," Scottish Parliamentary constituency (current; SSI 2025/285, 7 May 2026 election)."]}),(0,s.jsx)(n.td,{children:'"Aberdeen Central"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_constituency_2021"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2021 Scottish Parliamentary constituency (superseded)."}),(0,s.jsx)(n.td,{children:'"Aberdeen Central"'})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"health",children:"Health"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 NHS health board area (operational)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area_2006"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 health board area (historical)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area_1995"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1995 health board area (historical)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"integration_authority"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 health and social care integration authority."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"statistical--census",children:"Statistical & census"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"output_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 census Output Area code (smallest census geography)."}),(0,s.jsx)(n.td,{children:'"S00136537"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"output_area_2011"})," / ",(0,s.jsx)(n.code,{children:"output_area_2001"})," / ",(0,s.jsx)(n.code,{children:"output_area_1991"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Output Area codes."}),(0,s.jsx)(n.td,{children:'"S00088970"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"data_zone"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Data Zone name (Scottish equivalent of LSOA)."}),(0,s.jsx)(n.td,{children:'"West End North - 01"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"data_zone_2011"})," / ",(0,s.jsx)(n.code,{children:"data_zone_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Data Zone codes."}),(0,s.jsx)(n.td,{children:'"S01006571"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"intermediate_zone"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Intermediate Zone name (Scottish equivalent of MSOA)."}),(0,s.jsx)(n.td,{children:'"West End North"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"intermediate_zone_2011"})," / ",(0,s.jsx)(n.code,{children:"intermediate_zone_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Intermediate Zone codes."}),(0,s.jsx)(n.td,{children:'"S02000007"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"locality"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 locality name."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"locality_2020"})," / ",(0,s.jsx)(n.code,{children:"locality_2001"})," / ",(0,s.jsx)(n.code,{children:"locality_1991"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical locality names."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"settlement"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 settlement name."}),(0,s.jsx)(n.td,{children:'"Aberdeen, Milltimber, and Peterculter"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"settlement_2020"})," / ",(0,s.jsx)(n.code,{children:"settlement_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical settlement names."}),(0,s.jsx)(n.td,{children:'"Aberdeen Settlement"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"travel_to_work_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2011 Travel to Work Area."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"lau_level_1"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2025 LAU level 1 name (replaces previous NUTS classifications)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"itl_level_2"})," / ",(0,s.jsx)(n.code,{children:"itl_level_3"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2025 ITL level 2 / 3 names (replaces NUTS 2 / 3)."}),(0,s.jsx)(n.td,{children:'"North Eastern Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"urban_rural_6_fold"})," / ",(0,s.jsx)(n.code,{children:"urban_rural_8_fold"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Scottish Government urban-rural classification codes."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_index_of_multiple_deprivation"})}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"SIMD 2020 rank for the postcode's Data Zone (1 = most deprived, 6976 = least deprived)."}),(0,s.jsx)(n.td,{children:"6414"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"roa_community_planning_partnership"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 Community Planning Partnership name."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"roa_local"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 Regional Outcome Agreement local authority."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count"})," / ",(0,s.jsx)(n.code,{children:"census_population_count"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2022 census. May be 0 for empty / zero-suppressed postcodes."}),(0,s.jsx)(n.td,{children:"0"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_2011"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_2011"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2011 census."}),(0,s.jsx)(n.td,{children:"8 / 18"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_2001"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_2001"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2001 census."}),(0,s.jsx)(n.td,{children:"12 / 26"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_1991"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_1991"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 1991 census."}),(0,s.jsx)(n.td,{children:"null"})]})]})]}),"\n",(0,s.jsxs)(n.h3,{id:"codes-object",children:[(0,s.jsx)(n.code,{children:"codes"})," object"]}),"\n",(0,s.jsxs)(n.p,{children:["Mirrors every name field above with its GSS / official code, where SPD publishes one. Where SPD ships only a code (e.g. ",(0,s.jsx)(n.code,{children:"registration_district"}),", ",(0,s.jsx)(n.code,{children:"strategic_development_planning_area"}),"), the same value appears as the top-level field. Pseudo codes (e.g. ",(0,s.jsx)(n.code,{children:"S99999999"}),") appear where a geography does not apply."]})]})}function a(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},31736(e,n,t){t.d(n,{R:()=>i,x:()=>l});var d=t(20489);const s={},r=d.createContext(s);function i(e){const n=d.useContext(r);return d.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),d.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/build/assets/js/2b8f49f9.a97c08f0.js b/build/assets/js/2b8f49f9.a97c08f0.js deleted file mode 100644 index 15804d122..000000000 --- a/build/assets/js/2b8f49f9.a97c08f0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[759],{9856(e,n,t){t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>a,frontMatter:()=>i,metadata:()=>d,toc:()=>h});const d=JSON.parse('{"id":"scottish-postcode/schema","title":"Scottish Postcode Schema","description":"The Scottish Postcode schema represents the full set of geographies the Scottish Postcode Directory (SPD) ships against a postcodepostcode endpoint.","source":"@site/docs/scottish-postcode/schema.mdx","sourceDirName":"scottish-postcode","slug":"/scottish-postcode/schema","permalink":"/docs/scottish-postcode/schema","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Schema","title":"Scottish Postcode Schema"},"sidebar":"docsSidebar","previous":{"title":"Lookup","permalink":"/docs/terminated-postcode/lookup"},"next":{"title":"Lookup","permalink":"/docs/scottish-postcode/lookup"}}');var s=t(31325),r=t(31736);const i={sidebar_label:"Schema",title:"Scottish Postcode Schema"},l=void 0,c={},h=[{value:"Example",id:"example",level:2},{value:"Reference",id:"reference",level:2},{value:"Identity & spatial",id:"identity--spatial",level:3},{value:"Administrative geographies",id:"administrative-geographies",level:3},{value:"Parliamentary",id:"parliamentary",level:3},{value:"Health",id:"health",level:3},{value:"Statistical & census",id:"statistical--census",level:3},{value:"codes object",id:"codes-object",level:3}];function o(e){const n={code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:["The Scottish Postcode schema represents the full set of geographies the Scottish Postcode Directory (SPD) ships against a postcode: administrative, electoral, health, statistical, and census. It is returned by the ",(0,s.jsx)(n.code,{children:"/scotland/postcodes/:postcode"})," endpoint."]}),"\n",(0,s.jsxs)(n.p,{children:["Top-level fields hold the ",(0,s.jsx)(n.strong,{children:"canonical (latest)"})," value for each datapoint. Year-suffixed fields surface prior versions where SPD publishes them (e.g. ",(0,s.jsx)(n.code,{children:"data_zone"})," is the 2022 Data Zone; ",(0,s.jsx)(n.code,{children:"data_zone_2011"})," and ",(0,s.jsx)(n.code,{children:"data_zone_2001"})," are historical baselines). The ",(0,s.jsx)(n.code,{children:"codes"})," object mirrors the same datapoints with their GSS / official codes."]}),"\n",(0,s.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",children:'{\n "status": 200,\n "result": {\n "postcode": "AB10 1XG",\n "postcode_district": "AB10",\n "postcode_sector": "AB10 1",\n "incode": "1XG",\n "outcode": "AB10",\n "user_type": "0",\n "date_of_introduction": "199406",\n "date_of_deletion": null,\n "longitude": -2.10250,\n "latitude": 57.14945,\n "eastings": 393859,\n "northings": 806073,\n "council_area": "Aberdeen City",\n "electoral_ward": "Midstocket/Rosemount",\n "uk_parliamentary_constituency": "Aberdeen South",\n "scottish_parliamentary_region": "North East Scotland",\n "scottish_parliamentary_constituency": "Aberdeen Central",\n "health_board_area": "Grampian",\n "integration_authority": "Aberdeen City",\n "data_zone": "West End North - 01",\n "data_zone_2011": "S01006571",\n "intermediate_zone": "West End North",\n "output_area": "S00136537",\n "locality": "Aberdeen",\n "settlement": "Aberdeen, Milltimber, and Peterculter",\n "civil_parish": "Old Machar",\n "island": "Mainland of Scotland",\n "national_park": null,\n "travel_to_work_area": "Aberdeen",\n "lau_level_1": "Aberdeen City",\n "itl_level_2": "North Eastern Scotland",\n "itl_level_3": "Aberdeen City and Aberdeenshire",\n "urban_rural_6_fold": "1",\n "urban_rural_8_fold": "1",\n "scottish_index_of_multiple_deprivation": 6414,\n "census_household_count": 0,\n "census_population_count": 0,\n "codes": {\n "council_area": "S12000033",\n "electoral_ward": "S13002841",\n "uk_parliamentary_constituency": "S14000061",\n "scottish_parliamentary_region": "S17000016",\n "scottish_parliamentary_constituency": "S16000094",\n "health_board_area": "S08000020",\n "integration_authority": "S37000002",\n "data_zone": "S01013550",\n "intermediate_zone": "S02002527",\n "locality": "S19000001",\n "settlement": "S20000001",\n "civil_parish": "S07000001",\n "national_park": null,\n "travel_to_work_area": "S22000047"\n }\n }\n}\n'})}),"\n",(0,s.jsx)(n.h2,{id:"reference",children:"Reference"}),"\n",(0,s.jsx)(n.h3,{id:"identity--spatial",children:"Identity & spatial"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Royal Mail postcode (canonical formatting with single space)."}),(0,s.jsx)(n.td,{children:'"AB10 1XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"pc_compact"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Postcode with all spaces removed."}),(0,s.jsx)(n.td,{children:'"AB101XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode_district"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Equivalent to the outward code."}),(0,s.jsx)(n.td,{children:'"AB10"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"postcode_sector"})}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Outward code plus the first character of the inward code."}),(0,s.jsx)(n.td,{children:'"AB10 1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"outcode"})," / ",(0,s.jsx)(n.code,{children:"incode"})]}),(0,s.jsx)(n.td,{children:"string"}),(0,s.jsx)(n.td,{children:"Outward / inward halves of the postcode."}),(0,s.jsx)(n.td,{children:'"AB10" / "1XG"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"user_type"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:'SPD user type ("0" = small user, "1" = large user).'}),(0,s.jsx)(n.td,{children:'"0"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"date_of_introduction"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Date the postcode was introduced (YYYYMM)."}),(0,s.jsx)(n.td,{children:'"199406"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"date_of_deletion"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsxs)(n.td,{children:["Date the postcode was deleted (YYYYMM); ",(0,s.jsx)(n.code,{children:"null"})," for live postcodes."]}),(0,s.jsx)(n.td,{children:"null"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"linked_small_user_postcode"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"For large-user postcodes, the linked small-user postcode (if any)."}),(0,s.jsx)(n.td,{children:"null"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"longitude"})," / ",(0,s.jsx)(n.code,{children:"latitude"})]}),(0,s.jsx)(n.td,{children:"number | null"}),(0,s.jsx)(n.td,{children:"WGS84 coordinates."}),(0,s.jsx)(n.td,{children:"-2.10250"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"eastings"})," / ",(0,s.jsx)(n.code,{children:"northings"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"OS National Grid grid reference (1m resolution)."}),(0,s.jsx)(n.td,{children:"393859"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"split_indicator"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Marks postcodes that span more than one administrative unit."}),(0,s.jsx)(n.td,{children:'"0"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"grid_link_indicator"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"How the postcode was linked to its grid reference."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"grid_link_positional_accuracy"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Positional accuracy of the grid reference."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"never_digitised"})}),(0,s.jsx)(n.td,{children:"boolean"}),(0,s.jsx)(n.td,{children:"True if the postcode has never been digitised (no grid reference established)."}),(0,s.jsx)(n.td,{children:"false"})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"administrative-geographies",children:"Administrative geographies"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"council_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 council area name (current unitary authority)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"electoral_ward"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 electoral ward name."}),(0,s.jsx)(n.td,{children:'"Midstocket/Rosemount"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"local_government_district"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1995 local government district name (pre-unitary boundary)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"local_government_district_1991"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1991 local government district name (historical)."}),(0,s.jsx)(n.td,{children:'"City of Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"enterprise_region"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2008 enterprise region name."}),(0,s.jsx)(n.td,{children:'"Highlands and Islands"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"registration_district"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2007 registration district code. (SPD provides codes only \u2014 no names.)"}),(0,s.jsx)(n.td,{children:'"RD20"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"strategic_development_planning_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2013 SDPA code."}),(0,s.jsx)(n.td,{children:'"SD01"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"civil_parish"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1930 Scottish civil parish name (latest historical baseline)."}),(0,s.jsx)(n.td,{children:'"Old Machar"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"island"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:'Island name; "Mainland of Scotland" for non-island postcodes.'}),(0,s.jsx)(n.td,{children:'"Mainland of Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"national_park"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2010 national park name (Cairngorms / Loch Lomond and the Trossachs)."}),(0,s.jsx)(n.td,{children:"null"})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"parliamentary",children:"Parliamentary"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"uk_parliamentary_constituency"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2024 UK Parliamentary constituency."}),(0,s.jsx)(n.td,{children:'"Aberdeen South"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_region"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2021 Scottish Parliamentary region."}),(0,s.jsx)(n.td,{children:'"North East Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_parliamentary_constituency"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2021 Scottish Parliamentary constituency."}),(0,s.jsx)(n.td,{children:'"Aberdeen Central"'})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"health",children:"Health"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 NHS health board area (operational)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area_2006"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 health board area (historical)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"health_board_area_1995"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"1995 health board area (historical)."}),(0,s.jsx)(n.td,{children:'"Grampian"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"integration_authority"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2019 health and social care integration authority."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"statistical--census",children:"Statistical & census"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"}),(0,s.jsx)(n.th,{children:"Example"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"output_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 census Output Area code (smallest census geography)."}),(0,s.jsx)(n.td,{children:'"S00136537"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"output_area_2011"})," / ",(0,s.jsx)(n.code,{children:"output_area_2001"})," / ",(0,s.jsx)(n.code,{children:"output_area_1991"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Output Area codes."}),(0,s.jsx)(n.td,{children:'"S00088970"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"data_zone"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Data Zone name (Scottish equivalent of LSOA)."}),(0,s.jsx)(n.td,{children:'"West End North - 01"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"data_zone_2011"})," / ",(0,s.jsx)(n.code,{children:"data_zone_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Data Zone codes."}),(0,s.jsx)(n.td,{children:'"S01006571"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"intermediate_zone"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Intermediate Zone name (Scottish equivalent of MSOA)."}),(0,s.jsx)(n.td,{children:'"West End North"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"intermediate_zone_2011"})," / ",(0,s.jsx)(n.code,{children:"intermediate_zone_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical Intermediate Zone codes."}),(0,s.jsx)(n.td,{children:'"S02000007"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"locality"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 locality name."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"locality_2020"})," / ",(0,s.jsx)(n.code,{children:"locality_2001"})," / ",(0,s.jsx)(n.code,{children:"locality_1991"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical locality names."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"settlement"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 settlement name."}),(0,s.jsx)(n.td,{children:'"Aberdeen, Milltimber, and Peterculter"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"settlement_2020"})," / ",(0,s.jsx)(n.code,{children:"settlement_2001"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"Historical settlement names."}),(0,s.jsx)(n.td,{children:'"Aberdeen Settlement"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"travel_to_work_area"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2011 Travel to Work Area."}),(0,s.jsx)(n.td,{children:'"Aberdeen"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"lau_level_1"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2025 LAU level 1 name (replaces previous NUTS classifications)."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"itl_level_2"})," / ",(0,s.jsx)(n.code,{children:"itl_level_3"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2025 ITL level 2 / 3 names (replaces NUTS 2 / 3)."}),(0,s.jsx)(n.td,{children:'"North Eastern Scotland"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"urban_rural_6_fold"})," / ",(0,s.jsx)(n.code,{children:"urban_rural_8_fold"})]}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2022 Scottish Government urban-rural classification codes."}),(0,s.jsx)(n.td,{children:'"1"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"scottish_index_of_multiple_deprivation"})}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"SIMD 2020 rank for the postcode's Data Zone (1 = most deprived, 6976 = least deprived)."}),(0,s.jsx)(n.td,{children:"6414"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"roa_community_planning_partnership"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 Community Planning Partnership name."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"roa_local"})}),(0,s.jsx)(n.td,{children:"string | null"}),(0,s.jsx)(n.td,{children:"2006 Regional Outcome Agreement local authority."}),(0,s.jsx)(n.td,{children:'"Aberdeen City"'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count"})," / ",(0,s.jsx)(n.code,{children:"census_population_count"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2022 census. May be 0 for empty / zero-suppressed postcodes."}),(0,s.jsx)(n.td,{children:"0"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_2011"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_2011"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2011 census."}),(0,s.jsx)(n.td,{children:"8 / 18"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_2001"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_2001"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 2001 census."}),(0,s.jsx)(n.td,{children:"12 / 26"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"census_household_count_1991"})," / ",(0,s.jsx)(n.code,{children:"census_population_count_1991"})]}),(0,s.jsx)(n.td,{children:"integer | null"}),(0,s.jsx)(n.td,{children:"Counts at the 1991 census."}),(0,s.jsx)(n.td,{children:"null"})]})]})]}),"\n",(0,s.jsxs)(n.h3,{id:"codes-object",children:[(0,s.jsx)(n.code,{children:"codes"})," object"]}),"\n",(0,s.jsxs)(n.p,{children:["Mirrors every name field above with its GSS / official code, where SPD publishes one. Where SPD ships only a code (e.g. ",(0,s.jsx)(n.code,{children:"registration_district"}),", ",(0,s.jsx)(n.code,{children:"strategic_development_planning_area"}),"), the same value appears as the top-level field. Pseudo codes (e.g. ",(0,s.jsx)(n.code,{children:"S99999999"}),") appear where a geography does not apply."]})]})}function a(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},31736(e,n,t){t.d(n,{R:()=>i,x:()=>l});var d=t(20489);const s={},r=d.createContext(s);function i(e){const n=d.useContext(r);return d.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),d.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/build/assets/js/31c97d68.1b2c4a87.js b/build/assets/js/31c97d68.1b2c4a87.js new file mode 100644 index 000000000..f7e039409 --- /dev/null +++ b/build/assets/js/31c97d68.1b2c4a87.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[2008],{41228(e,t,i){i.r(t),i.d(t,{assets:()=>S,contentTitle:()=>f,default:()=>b,frontMatter:()=>y,metadata:()=>a,toc:()=>g});const a=JSON.parse('{"id":"api/postcode-lookup","title":"Autocomplete Search a Postcode","description":"Query for a postcode either by:","source":"@site/docs/api/postcode-lookup.api.mdx","sourceDirName":"api","slug":"/api/postcode-lookup","permalink":"/docs/api/postcode-lookup","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"postcode-lookup","title":"Autocomplete Search a Postcode","description":"Query for a postcode either by:","sidebar_label":"Autocomplete Search a Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztPItOI0mSvxKqlQ5zMsY2MN34NLqjaYZhhte2afXNTo8gXRW2czorsyYzC/C1kO4j7gvvS06RWW8bg00zuyftSLuNq/IRERkZ74qvgWUTEwx+DS6VsaGK0AS/tQOVoGaWK3kSBYPiFZwq9SVNgnYQoQk1T2hEMAj+mqKewVhpYJDkY5HbKWoYzQaf5We5BVdTLF9ya1CMoXXH7RRu/qD5399sgqLxbRp9ABNUQoUOCGjdCGa/vwEmI7gRSn5/s9mhVf/yF/B7u3VyMOnNMB3F3FbhcZu4FTSGyG8RGIQqTgRaBMGNBTUuR8fMhlM0bjwTApgxKuTMYlSOiZhlHbiacgPcgNV8MkGNEdxNURZI0SuTJongGDmY8/FoDErLmRCzKpgGmQ6ncDfl4RQSjWN+XwNGo021NMUEA1yCUZogUzpCDa2QGQQuDUrDLb/FzXLfGO1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A1u1NBPdfNSxuRhneZrK8jWiRio0xQ6Lui2UmSsK0MBYY6Wy23efAoKE3KIJKnqsixvpUmOuyeCRjNyXHC4zJ0T5VUDWp4q5tkB5lwKaW+bqMJvr1rq5ufksHzup7LXvsOigCqnzgoHjoysH4eXF8CqXE6bjf3peMa5aOmtKRN+mINw0+xLd5NjkDYgM/T5i1ASr7KwY580VmKSKS60S7Uo2fry6unQptNTkvVB8Xwii1k/Di/PLAjLXXQRd9XYo6HNIat7oOlv69klt2M0eMBixKJ9Hj3fdY8pZjcmtdljv5bMdzwJqrbTbYR4mOmRhVL5xtUOVx2+kollOBvrEm4K2ZcfIGsMU2bMso+XS8eV43+rRSXmflMGYcboH1AtSafsfjZ6anVB10i8uqeSuztAPm7s+C6dtZ4tSkzDXGCdmsnIND1Kriq6qWW82BpVmObV78bVsXvXPJrL/bCL7zyay/5BNZDPT1+K93U4E466+x4mKr5lBUPZfc92zpoq+Mv41+PqVgpQftXh4oMe+eSCZCRE3rmlh0TDwC84q3QXd9zTBIHCW0NzYRyXIKzaBXUgCD3TevHZNoL9ZR9dlIFaaJSwHMxtfdiP4OxzFczqbLkG26Mv6HExrTUufM6Foh1kO/q00XYPBr+SETZFFqB2n+1kHznqqzJpr1FiztY+ProKHh/8DITAmZg==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Lookup Postcode","permalink":"/docs/api/lookup-postcode"},"next":{"title":"Find the Nearest Postcodes","permalink":"/docs/api/nearest-postcode"}}');var o=i(31325),r=i(31736),n=i(47812),l=i.n(n),s=i(38616),c=i.n(s),d=i(67994),p=i.n(d),u=i(54768),m=i.n(u),h=(i(24909),i(96847),i(78121));const y={id:"postcode-lookup",title:"Autocomplete Search a Postcode",description:"Query for a postcode either by:",sidebar_label:"Autocomplete Search a Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJztPItOI0mSvxKqlQ5zMsY2MN34NLqjaYZhhte2afXNT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zJpr1FiztY+ProKHh/8DITAmZg==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},f=void 0,S={},g=[{value:"Query with Postcode",id:"query-with-postcode",level:2},{value:"Query with Geolocation",id:"query-with-geolocation",level:2}];function x(e){const t={a:"a",code:"code",h2:"h2",li:"li",p:"p",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Autocomplete Search a Postcode"}),"\n",(0,o.jsx)(l(),{method:"get",path:"/postcodes",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Query for a postcode either by:"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["The postcode itself (with ",(0,o.jsx)(t.code,{children:"query="}),") or by,"]}),"\n",(0,o.jsxs)(t.li,{children:["A geolocation (",(0,o.jsx)(t.code,{children:"lat="})," and ",(0,o.jsx)(t.code,{children:"lon="}),")."]}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"query-with-postcode",children:"Query with Postcode"}),"\n",(0,o.jsxs)(t.p,{children:["Submit a postcode query and receive a complete list of postcode matches and all associated postcode data. This is triggered when ",(0,o.jsx)(t.code,{children:"query="})," is supplied."]}),"\n",(0,o.jsx)(t.p,{children:"This is essentially a postcode search which prefix matches and returns postcodes in sorted order (case insensitive)."}),"\n",(0,o.jsxs)(t.p,{children:["This method is space sensitive, i.e. it detects for spaces between outward and inward parts of the postcode (some examples detailed in this ",(0,o.jsx)(t.a,{href:"https://github.com/ideal-postcodes/postcodes.io/issues/44",children:"issue"}),")."]}),"\n",(0,o.jsx)(t.p,{children:"The result set can either be empty or populated with up to 100 postcode entities. Either way it will always return a 200 response code."}),"\n",(0,o.jsx)(t.h2,{id:"query-with-geolocation",children:"Query with Geolocation"}),"\n",(0,o.jsxs)(t.p,{children:["Returns nearest postcodes for a given longitude and latitude. This is triggered when ",(0,o.jsx)(t.code,{children:"lat="})," and ",(0,o.jsx)(t.code,{children:"lon="})," are supplied."]}),"\n",(0,o.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(c(),{parameters:[{name:"query",in:"query",style:"form",explode:!1,schema:{description:"Postcode to query. Aliases to `q=`",example:"SW1A 2AA"}},{name:"limit",in:"query",style:"form",explode:!1,description:"Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100.",schema:{default:10,maximum:100,minimum:1,example:3}},{name:"longitude",in:"query",style:"form",explode:!1,description:"Geographic coordinate that specifies the east-west position of a point",schema:{title:"Longitude",type:"number",format:"double",example:-.127695,maximum:180,minimum:-180}},{name:"latitude",in:"query",style:"form",explode:!1,schema:{title:"Latitude",type:"number",format:"double",description:"Latitude",example:51.50354,maximum:90,minimum:-90}},{name:"radius",in:"query",style:"form",explode:!1,description:"Limits number of postcodes matches to return. Defaults to 100m. Needs to be less than 2,000m.",schema:{title:"Radius",type:"integer",example:500,default:100,maximum:2e3,minimum:1}},{name:"widesearch",in:"query",style:"form",explode:!1,schema:{title:"Widesearch",type:"boolean",description:"Search up to 20km radius, but subject to a maximum of 10 results. Since lookups over a wide area can be very expensive, we've created this method to allow you choose to make the trade off between search radius and number of results. Defaults to false. When enabled, radius and limits over 10 are ignored.",example:"true",default:"false"}},{name:"filter",in:"query",style:"form",explode:!1,schema:{title:"Filter",type:"string",description:"A comma separated whitelist of attributes to be returned in the result object(s), e.g. filter=postcode,longitude,latitude. null responses will continue to return null. If no attributes match the result object, an empty object is returned",example:"postcode"}}]}),"\n",(0,o.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcodes Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{type:"array",items:{oneOf:[{type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","pfa","date_of_introduction","date_of_termination","index_of_multiple_deprivation","parliamentary_constituency_2024","senedd_constituency","senedd_constituency_no","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).",example:null},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:"Caerdydd Penarth"},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:14},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",required:["admin_district","admin_county","admin_ward","parish","ccg","ccg_id","ced","nuts","lau2","lsoa","msoa","pfa","parliamentary_constituency","parliamentary_constituency_2024","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2"],properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}]},description:"Array containing detailed location information for the requested postcode or nearest postcodes"}}}}}}}})]})}function b(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(x,{...e})}):x(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/31c97d68.62c03ba9.js b/build/assets/js/31c97d68.62c03ba9.js deleted file mode 100644 index 845c147f6..000000000 --- a/build/assets/js/31c97d68.62c03ba9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[2008],{41228(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>y,default:()=>x,frontMatter:()=>f,metadata:()=>o,toc:()=>S});const o=JSON.parse('{"id":"api/postcode-lookup","title":"Autocomplete Search a Postcode","description":"Query for a postcode either by:","source":"@site/docs/api/postcode-lookup.api.mdx","sourceDirName":"api","slug":"/api/postcode-lookup","permalink":"/docs/api/postcode-lookup","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"postcode-lookup","title":"Autocomplete Search a Postcode","description":"Query for a postcode either by:","sidebar_label":"Autocomplete Search a Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztPA1PG8mSf6U0TzrMkzG2gQR8Wt0RwrLs8vUwUW7fJoL2TNnuTU/3bHcP4IuQ7kfcL7xfcqru+bSNwSZk76SNlMT29EdVdXV9T30NLBuZoPdbcKGMDVWEJvjcDFSCmlmu5HEU9IpHcKLUlzQJmkGEJtQ8oRFBL/hHinoCQ6WBQZKPRW7HqGEw6X2Sn+QGXI2xfMitQTGExh23Y7j5g+b/cL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DAUGOlEtk35QGChNyiESr6WRc30qV1XO+1Qxm5Nw9cVkmIsoo9a9/DXLeU/F13mlvmmTCb69a6ubn5JB87qeyxbzznoArp/X0DR4dXDsKL8/5VLidMy3/1vGJcdW/Wq4XepUC4mW7XcpNjk/dlMfT9kFFvoLLhXJy/os8kVQtqlWhXbvDT1dWFS/+kJu+o4bsLELV+7p+fXRSQuR4V6KqNQ0Gv71FPO9fwz3eVacJ29gODAYvyefTztvuZ8i1Dcqsd1jv5bMezgFor7XaYhYkOWRiVb1xt3OPxG6hokpOBXhSmoG3ZSK/GMEXmJ2sE41LJ5XjfAc9JeZ+UwZhxugfUIk9p++9TrQZboWqlVFeYXZ2+HzZzfeZO28wWpd5Jrr1KzGTlGu6nVhXNJrOWVQwqLVdq9+Jr2dPnr96af/XW/Ku35v/J3pqZ6Wvx3m4mgnFXm+JExdfMICjbUrkeTGNFb8X+Fnz9SkHKD1o8PNDPvqcamQkRN66XW9FH7QtOKk3X3Psf/tX/OWMflSCv2BtzLgk80HlPzxWB/maNLheBWHm5fzGY2fjy7fk/4Sie0/BxAbJFu8rnYFrr5ficCUWXwHLw59J0DXq/kRM2RhahdpzuZ+0766kya6Z/Xc3WPjq8Ch4e/hczgyvo","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Lookup Postcode","permalink":"/docs/api/lookup-postcode"},"next":{"title":"Find the Nearest Postcodes","permalink":"/docs/api/nearest-postcode"}}');var a=i(31325),n=i(31736),r=i(47812),l=i.n(r),s=i(38616),c=i.n(s),d=i(67994),p=i.n(d),u=i(54768),m=i.n(u),h=(i(24909),i(96847),i(78121));const f={id:"postcode-lookup",title:"Autocomplete Search a Postcode",description:"Query for a postcode either by:",sidebar_label:"Autocomplete Search a Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJztPA1PG8mSf6U0TzrMkzG2gQR8Wt0RwrLs8vUwUW7fJoL2TNnuTU/3bHcP4IuQ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Gew46AXlEgQG6tu871aqxQICzHZBuTh2sXtXWHfLNKcbReEc1xuEWJNup6vxceM7u612q00E4ZTPdQZc1r7l9PgqaE7tr6iJjSNSS+nRZjbJbNLYyg0iKC6LCveNWoqEbj7q2JwPsxxDZfkaUSMVmmKHee/sl1kXCtDAUGOlEtk35QGChNyiESr6WRc30qV1XO+1Qxm5Nw9cVkmIsoo9a9/DXLeU/F13mlvmmTCb69a6ubn5JB87qeyxbzznoArp/X0DR4dXDsKL8/5VLidMy3/1vGJcdW/Wq4XepUC4mW7XcpNjk/dlMfT9kFFvoLLhXJy/os8kVQtqlWhXbvDT1dWFS/+kJu+o4bsLELV+7p+fXRSQuR4V6KqNQ0Gv71FPO9fwz3eVacJ29gODAYvyefTztvuZ8i1Dcqsd1jv5bMezgFor7XaYhYkOWRiVb1xt3OPxG6hokpOBXhSmoG3ZSK/GMEXmJ2sE41LJ5XjfAc9JeZ+UwZhxugfUIk9p++9TrQZboWqlVFeYXZ2+HzZzfeZO28wWpd5Jrr1KzGTlGu6nVhXNJrOWVQwqLVdq9+Jr2dPnr96af/XW/Ku35v/J3pqZ6Wvx3m4mgnFXm+JExdfMICjbUrkeTGNFb8X+Fnz9SkHKD1o8PNDPvqcamQkRN66XW9FH7QtOKk3X3Psf/tX/OWMflSCv2BtzLgk80HlPzxWB/maNLheBWHm5fzGY2fjy7fk/4Sie0/BxAbJFu8rnYFrr5ficCUWXwHLw59J0DXq/kRM2RhahdpzuZ+0766kya6Z/Xc3WPjq8Ch4e/hczgyvo",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,g={},S=[{value:"Query with Postcode",id:"query-with-postcode",level:2},{value:"Query with Geolocation",id:"query-with-geolocation",level:2}];function b(e){const t={a:"a",code:"code",h2:"h2",li:"li",p:"p",ul:"ul",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Autocomplete Search a Postcode"}),"\n",(0,a.jsx)(l(),{method:"get",path:"/postcodes",context:"endpoint"}),"\n",(0,a.jsx)(t.p,{children:"Query for a postcode either by:"}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsxs)(t.li,{children:["The postcode itself (with ",(0,a.jsx)(t.code,{children:"query="}),") or by,"]}),"\n",(0,a.jsxs)(t.li,{children:["A geolocation (",(0,a.jsx)(t.code,{children:"lat="})," and ",(0,a.jsx)(t.code,{children:"lon="}),")."]}),"\n"]}),"\n",(0,a.jsx)(t.h2,{id:"query-with-postcode",children:"Query with Postcode"}),"\n",(0,a.jsxs)(t.p,{children:["Submit a postcode query and receive a complete list of postcode matches and all associated postcode data. This is triggered when ",(0,a.jsx)(t.code,{children:"query="})," is supplied."]}),"\n",(0,a.jsx)(t.p,{children:"This is essentially a postcode search which prefix matches and returns postcodes in sorted order (case insensitive)."}),"\n",(0,a.jsxs)(t.p,{children:["This method is space sensitive, i.e. it detects for spaces between outward and inward parts of the postcode (some examples detailed in this ",(0,a.jsx)(t.a,{href:"https://github.com/ideal-postcodes/postcodes.io/issues/44",children:"issue"}),")."]}),"\n",(0,a.jsx)(t.p,{children:"The result set can either be empty or populated with up to 100 postcode entities. Either way it will always return a 200 response code."}),"\n",(0,a.jsx)(t.h2,{id:"query-with-geolocation",children:"Query with Geolocation"}),"\n",(0,a.jsxs)(t.p,{children:["Returns nearest postcodes for a given longitude and latitude. This is triggered when ",(0,a.jsx)(t.code,{children:"lat="})," and ",(0,a.jsx)(t.code,{children:"lon="})," are supplied."]}),"\n",(0,a.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,a.jsx)(c(),{parameters:[{name:"query",in:"query",style:"form",explode:!1,schema:{description:"Postcode to query. Aliases to `q=`",example:"SW1A 2AA"}},{name:"limit",in:"query",style:"form",explode:!1,description:"Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100.",schema:{default:10,maximum:100,minimum:1,example:3}},{name:"longitude",in:"query",style:"form",explode:!1,description:"Geographic coordinate that specifies the east-west position of a point",schema:{title:"Longitude",type:"number",format:"double",example:-.127695,maximum:180,minimum:-180}},{name:"latitude",in:"query",style:"form",explode:!1,schema:{title:"Latitude",type:"number",format:"double",description:"Latitude",example:51.50354,maximum:90,minimum:-90}},{name:"radius",in:"query",style:"form",explode:!1,description:"Limits number of postcodes matches to return. Defaults to 100m. Needs to be less than 2,000m.",schema:{title:"Radius",type:"integer",example:500,default:100,maximum:2e3,minimum:1}},{name:"widesearch",in:"query",style:"form",explode:!1,schema:{title:"Widesearch",type:"boolean",description:"Search up to 20km radius, but subject to a maximum of 10 results. Since lookups over a wide area can be very expensive, we've created this method to allow you choose to make the trade off between search radius and number of results. Defaults to false. When enabled, radius and limits over 10 are ignored.",example:"true",default:"false"}},{name:"filter",in:"query",style:"form",explode:!1,schema:{title:"Filter",type:"string",description:"A comma separated whitelist of attributes to be returned in the result object(s), e.g. filter=postcode,longitude,latitude. null responses will continue to return null. If no attributes match the result object, an empty object is returned",example:"postcode"}}]}),"\n",(0,a.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,a.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcodes Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{type:"array",items:{oneOf:[{type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. May be empty for areas without county-level administration.",example:""},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}]},description:"Array containing detailed location information for the requested postcode or nearest postcodes"}}}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/36bb8c04.2bbeadde.js b/build/assets/js/36bb8c04.1d5e4613.js similarity index 54% rename from build/assets/js/36bb8c04.2bbeadde.js rename to build/assets/js/36bb8c04.1d5e4613.js index 8fbcc304b..6ea8dc47c 100644 --- a/build/assets/js/36bb8c04.2bbeadde.js +++ b/build/assets/js/36bb8c04.1d5e4613.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[7031],{88082(e,n,t){t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>_,frontMatter:()=>s,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"scottish-postcode/lookup","title":"Lookup a Scottish Postcode","description":"This endpoint returns the full Scottish Postcode Directory (SPD) record for a Scottish postcode: council area, electoral ward, NHS health board and integration authority, data zone and intermediate zone, locality and settlement, civil parish, urban-rural classification, Scottish Index of Multiple Deprivation, census household and population counts, and the equivalent GSS / official codes \u2014 including historical (year-suffixed) values where the upstream record carries them.","source":"@site/docs/scottish-postcode/lookup.mdx","sourceDirName":"scottish-postcode","slug":"/scottish-postcode/lookup","permalink":"/docs/scottish-postcode/lookup","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Lookup","title":"Lookup a Scottish Postcode"},"sidebar":"docsSidebar","previous":{"title":"Schema","permalink":"/docs/scottish-postcode/schema"},"next":{"title":"Libraries","permalink":"/docs/libraries"}}');var a=t(31325),i=t(31736);const s={sidebar_label:"Lookup",title:"Lookup a Scottish Postcode"},r=void 0,l={},c=[{value:"Endpoint",id:"endpoint",level:2},{value:"Example Request",id:"example-request",level:2},{value:"Example Response",id:"example-response",level:2}];function d(e){const n={a:"a",code:"code",h2:"h2",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.p,{children:"This endpoint returns the full Scottish Postcode Directory (SPD) record for a Scottish postcode: council area, electoral ward, NHS health board and integration authority, data zone and intermediate zone, locality and settlement, civil parish, urban-rural classification, Scottish Index of Multiple Deprivation, census household and population counts, and the equivalent GSS / official codes \u2014 including historical (year-suffixed) values where the upstream record carries them."}),"\n",(0,a.jsx)(n.p,{children:"A successful request returns HTTP status code 200 and a JSON object containing the postcode's SPD data."}),"\n",(0,a.jsx)(n.p,{children:'If the postcode is not found in the Scottish Postcode Directory (SPD), the API returns a 404 response. For postcodes that exist in the ONS Postcode Directory (ONSPD) but not in SPD, a 404 response is returned with the message "Postcode exists in ONSPD but not in SPD".'}),"\n",(0,a.jsxs)(n.p,{children:["For the full field listing see the ",(0,a.jsx)(n.a,{href:"/docs/scottish-postcode/schema",children:"Scottish Postcode Schema"}),". The ",(0,a.jsx)(n.a,{href:"/docs/api/get-scottish-postcode",children:"API Documentation"})," details the OpenAPI shape."]}),"\n",(0,a.jsx)(n.h2,{id:"endpoint",children:"Endpoint"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-http",children:"GET https://api.postcodes.io/scotland/postcodes/:postcode\n"})}),"\n",(0,a.jsx)(n.h2,{id:"example-request",children:"Example Request"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-http",children:"GET https://api.postcodes.io/scotland/postcodes/AB101XG\n"})}),"\n",(0,a.jsx)(n.p,{children:'The above would match any of these inputs: "AB10 1XG", "ab101xg", "Ab10 1Xg", etc.'}),"\n",(0,a.jsx)(n.h2,{id:"example-response",children:"Example Response"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-json",children:'{\n "status": 200,\n "result": {\n "postcode": "AB10 1XG",\n "pc_compact": "AB101XG",\n "postcode_district": "AB10",\n "postcode_sector": "AB10 1",\n "incode": "1XG",\n "outcode": "AB10",\n "user_type": "0",\n "date_of_introduction": "198001",\n "date_of_deletion": null,\n "linked_small_user_postcode": null,\n "longitude": -2.10250,\n "latitude": 57.14945,\n "eastings": 393859,\n "northings": 806073,\n "split_indicator": "0",\n "grid_link_indicator": "1",\n "grid_link_positional_accuracy": "1",\n "council_area": "Aberdeen City",\n "electoral_ward": "Midstocket/Rosemount",\n "registration_district": "RD20",\n "enterprise_region": "Highlands and Islands",\n "strategic_development_planning_area": "SD01",\n "local_government_district": "Aberdeen City",\n "local_government_district_1991": "City of Aberdeen",\n "uk_parliamentary_constituency": "Aberdeen South",\n "scottish_parliamentary_region": "North East Scotland",\n "scottish_parliamentary_constituency": "Aberdeen Central",\n "health_board_area": "Grampian",\n "health_board_area_2006": "Grampian",\n "health_board_area_1995": "Grampian",\n "integration_authority": "Aberdeen City",\n "output_area": "S00136537",\n "output_area_2011": "S00088970",\n "output_area_2001": "S00000700",\n "output_area_1991": null,\n "data_zone": "West End North - 01",\n "data_zone_2011": "S01006571",\n "data_zone_2001": "S01000125",\n "intermediate_zone": "West End North",\n "intermediate_zone_2011": "S02000007",\n "intermediate_zone_2001": "S02000017",\n "locality": "Aberdeen",\n "locality_2020": "Aberdeen",\n "locality_2001": "Aberdeen",\n "locality_1991": null,\n "settlement": "Aberdeen, Milltimber, and Peterculter",\n "settlement_2020": "Aberdeen Settlement",\n "settlement_2001": "Aberdeen Settlement",\n "civil_parish": "Old Machar",\n "island": "Mainland of Scotland",\n "national_park": null,\n "travel_to_work_area": "Aberdeen",\n "lau_level_1": "Aberdeen City",\n "itl_level_2": "North Eastern Scotland",\n "itl_level_3": "Aberdeen City and Aberdeenshire",\n "urban_rural_6_fold": "1",\n "urban_rural_8_fold": "1",\n "scottish_index_of_multiple_deprivation": 6414,\n "roa_community_planning_partnership": "Aberdeen City",\n "roa_local": "Aberdeen City",\n "census_household_count": 0,\n "census_household_count_2011": 8,\n "census_household_count_2001": 12,\n "census_household_count_1991": null,\n "census_population_count": 0,\n "census_population_count_2011": 18,\n "census_population_count_2001": 26,\n "census_population_count_1991": null,\n "never_digitised": false,\n "codes": {\n "council_area": "S12000033",\n "electoral_ward": "S13002841",\n "enterprise_region": "S99999999",\n "local_government_district": "S12000033",\n "local_government_district_1991": "S99999999",\n "uk_parliamentary_constituency": "S14000061",\n "scottish_parliamentary_region": "S17000016",\n "scottish_parliamentary_constituency": "S16000094",\n "health_board_area": "S08000020",\n "health_board_area_2006": "S08000006",\n "health_board_area_1995": "0",\n "integration_authority": "S37000002",\n "data_zone": "S01013550",\n "data_zone_2011": "S01006571",\n "data_zone_2001": "S01000125",\n "intermediate_zone": "S02002527",\n "intermediate_zone_2011": "S02000007",\n "intermediate_zone_2001": "S02000017",\n "locality": "S19000001",\n "settlement": "S20000001",\n "civil_parish": "S07000001",\n "island": "S20000001",\n "national_park": null,\n "travel_to_work_area": "S22000047",\n "lau_level_1": "TLM50",\n "itl_level_2": "TLM5",\n "itl_level_3": "TLM50",\n "registration_district": "RD20",\n "strategic_development_planning_area": "SD01",\n "roa_community_planning_partnership": "S12000033",\n "roa_local": "S12000033"\n }\n }\n}\n'})})]})}function _(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},31736(e,n,t){t.d(n,{R:()=>s,x:()=>r});var o=t(20489);const a={},i=o.createContext(a);function s(e){const n=o.useContext(i);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[7031],{88082(e,n,t){t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>_,frontMatter:()=>s,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"scottish-postcode/lookup","title":"Lookup a Scottish Postcode","description":"This endpoint returns the full Scottish Postcode Directory (SPD) record for a Scottish postcode: council area, electoral ward, NHS health board and integration authority, data zone and intermediate zone, locality and settlement, civil parish, urban-rural classification, Scottish Index of Multiple Deprivation, census household and population counts, and the equivalent GSS / official codes \u2014 including historical (year-suffixed) values where the upstream record carries them.","source":"@site/docs/scottish-postcode/lookup.mdx","sourceDirName":"scottish-postcode","slug":"/scottish-postcode/lookup","permalink":"/docs/scottish-postcode/lookup","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Lookup","title":"Lookup a Scottish Postcode"},"sidebar":"docsSidebar","previous":{"title":"Schema","permalink":"/docs/scottish-postcode/schema"},"next":{"title":"Libraries","permalink":"/docs/libraries"}}');var a=t(31325),i=t(31736);const s={sidebar_label:"Lookup",title:"Lookup a Scottish Postcode"},r=void 0,l={},c=[{value:"Endpoint",id:"endpoint",level:2},{value:"Example Request",id:"example-request",level:2},{value:"Example Response",id:"example-response",level:2}];function d(e){const n={a:"a",code:"code",h2:"h2",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.p,{children:"This endpoint returns the full Scottish Postcode Directory (SPD) record for a Scottish postcode: council area, electoral ward, NHS health board and integration authority, data zone and intermediate zone, locality and settlement, civil parish, urban-rural classification, Scottish Index of Multiple Deprivation, census household and population counts, and the equivalent GSS / official codes \u2014 including historical (year-suffixed) values where the upstream record carries them."}),"\n",(0,a.jsx)(n.p,{children:"A successful request returns HTTP status code 200 and a JSON object containing the postcode's SPD data."}),"\n",(0,a.jsx)(n.p,{children:'If the postcode is not found in the Scottish Postcode Directory (SPD), the API returns a 404 response. For postcodes that exist in the ONS Postcode Directory (ONSPD) but not in SPD, a 404 response is returned with the message "Postcode exists in ONSPD but not in SPD".'}),"\n",(0,a.jsxs)(n.p,{children:["For the full field listing see the ",(0,a.jsx)(n.a,{href:"/docs/scottish-postcode/schema",children:"Scottish Postcode Schema"}),". The ",(0,a.jsx)(n.a,{href:"/docs/api/get-scottish-postcode",children:"API Documentation"})," details the OpenAPI shape."]}),"\n",(0,a.jsx)(n.h2,{id:"endpoint",children:"Endpoint"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-http",children:"GET https://api.postcodes.io/scotland/postcodes/:postcode\n"})}),"\n",(0,a.jsx)(n.h2,{id:"example-request",children:"Example Request"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-http",children:"GET https://api.postcodes.io/scotland/postcodes/AB101XG\n"})}),"\n",(0,a.jsx)(n.p,{children:'The above would match any of these inputs: "AB10 1XG", "ab101xg", "Ab10 1Xg", etc.'}),"\n",(0,a.jsx)(n.h2,{id:"example-response",children:"Example Response"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-json",children:'{\n "status": 200,\n "result": {\n "postcode": "AB10 1XG",\n "pc_compact": "AB101XG",\n "postcode_district": "AB10",\n "postcode_sector": "AB10 1",\n "incode": "1XG",\n "outcode": "AB10",\n "user_type": "0",\n "date_of_introduction": "198001",\n "date_of_deletion": null,\n "linked_small_user_postcode": null,\n "longitude": -2.10250,\n "latitude": 57.14945,\n "eastings": 393859,\n "northings": 806073,\n "split_indicator": "0",\n "grid_link_indicator": "1",\n "grid_link_positional_accuracy": "1",\n "council_area": "Aberdeen City",\n "electoral_ward": "Midstocket/Rosemount",\n "registration_district": "RD20",\n "enterprise_region": "Highlands and Islands",\n "strategic_development_planning_area": "SD01",\n "local_government_district": "Aberdeen City",\n "local_government_district_1991": "City of Aberdeen",\n "uk_parliamentary_constituency": "Aberdeen South",\n "scottish_parliamentary_region": "North East Scotland",\n "scottish_parliamentary_region_2021": "North East Scotland",\n "scottish_parliamentary_constituency": "Aberdeen Central",\n "scottish_parliamentary_constituency_2021": "Aberdeen Central",\n "health_board_area": "Grampian",\n "health_board_area_2006": "Grampian",\n "health_board_area_1995": "Grampian",\n "integration_authority": "Aberdeen City",\n "output_area": "S00136537",\n "output_area_2011": "S00088970",\n "output_area_2001": "S00000700",\n "output_area_1991": null,\n "data_zone": "West End North - 01",\n "data_zone_2011": "S01006571",\n "data_zone_2001": "S01000125",\n "intermediate_zone": "West End North",\n "intermediate_zone_2011": "S02000007",\n "intermediate_zone_2001": "S02000017",\n "locality": "Aberdeen",\n "locality_2020": "Aberdeen",\n "locality_2001": "Aberdeen",\n "locality_1991": null,\n "settlement": "Aberdeen, Milltimber, and Peterculter",\n "settlement_2020": "Aberdeen Settlement",\n "settlement_2001": "Aberdeen Settlement",\n "civil_parish": "Old Machar",\n "island": "Mainland of Scotland",\n "national_park": null,\n "travel_to_work_area": "Aberdeen",\n "lau_level_1": "Aberdeen City",\n "itl_level_2": "North Eastern Scotland",\n "itl_level_3": "Aberdeen City and Aberdeenshire",\n "urban_rural_6_fold": "1",\n "urban_rural_8_fold": "1",\n "scottish_index_of_multiple_deprivation": 6414,\n "roa_community_planning_partnership": "Aberdeen City",\n "roa_local": "Aberdeen City",\n "census_household_count": 0,\n "census_household_count_2011": 8,\n "census_household_count_2001": 12,\n "census_household_count_1991": null,\n "census_population_count": 0,\n "census_population_count_2011": 18,\n "census_population_count_2001": 26,\n "census_population_count_1991": null,\n "never_digitised": false,\n "codes": {\n "council_area": "S12000033",\n "electoral_ward": "S13002841",\n "enterprise_region": "S99999999",\n "local_government_district": "S12000033",\n "local_government_district_1991": "S99999999",\n "uk_parliamentary_constituency": "S14000061",\n "scottish_parliamentary_region": "S17000026",\n "scottish_parliamentary_region_2021": "S17000014",\n "scottish_parliamentary_constituency": "S16000151",\n "scottish_parliamentary_constituency_2021": "S16000074",\n "health_board_area": "S08000020",\n "health_board_area_2006": "S08000006",\n "health_board_area_1995": "0",\n "integration_authority": "S37000002",\n "data_zone": "S01013550",\n "data_zone_2011": "S01006571",\n "data_zone_2001": "S01000125",\n "intermediate_zone": "S02002527",\n "intermediate_zone_2011": "S02000007",\n "intermediate_zone_2001": "S02000017",\n "locality": "S19000001",\n "settlement": "S20000001",\n "civil_parish": "S07000001",\n "island": "S20000001",\n "national_park": null,\n "travel_to_work_area": "S22000047",\n "lau_level_1": "TLM50",\n "itl_level_2": "TLM5",\n "itl_level_3": "TLM50",\n "registration_district": "RD20",\n "strategic_development_planning_area": "SD01",\n "roa_community_planning_partnership": "S12000033",\n "roa_local": "S12000033"\n }\n }\n}\n'})})]})}function _(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},31736(e,n,t){t.d(n,{R:()=>s,x:()=>r});var o=t(20489);const a={},i=o.createContext(a);function s(e){const n=o.useContext(i);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/build/assets/js/4c458f53.97238a6b.js b/build/assets/js/4c458f53.97238a6b.js new file mode 100644 index 000000000..366efa409 --- /dev/null +++ b/build/assets/js/4c458f53.97238a6b.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[595],{64570(e,t,a){a.r(t),a.d(t,{assets:()=>g,contentTitle:()=>y,default:()=>C,frontMatter:()=>f,metadata:()=>i,toc:()=>S});const i=JSON.parse('{"id":"api/bulk-postcode-lookup","title":"Bulk Postcode Lookup","description":"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.","source":"@site/docs/api/bulk-postcode-lookup.api.mdx","sourceDirName":"api","slug":"/api/bulk-postcode-lookup","permalink":"/docs/api/bulk-postcode-lookup","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"bulk-postcode-lookup","title":"Bulk Postcode Lookup","description":"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.","sidebar_label":"Bulk Postcode Lookup","hide_title":true,"hide_table_of_contents":true,"api":"eJztPO1SIzmSr5JR8wO4sI1toLvx/tilaYZhhq/FEOzsMAFylWxrUEk1kgra20HEPcQ94T3JRaaqylVlY7C76buL2I6Ywa6SUvkl5af1JXBsZIPeb8G5ti7UEYe/p9xMgt8bgU64YU5odRQFveBjKu+hGHSs9X2aBI0g4jY0IsFhQS/YC0OeOAsMfu6fnYIe/MFDB6FWjgkl1AiYAmYMm4AeQpIBsy244C41CudJYR2+jJkLxzijGAVMRWC4TXjoxAMH9sCEZAPJIWKOtW7UjfrIwaaGg9Ng00EsnEfD8D9Tbp0Fy51DmHf7WjmuXPNykvA7HH7HkkSKkMjd/MNqdUcAc3rSBAd12u0S0vj+hx9+IJ7AJ+YYPrgcCwsxd2Md0bLC8GW5gSsNOH3nUQN4a0RL3d3dIV436suNArgJivE3QQ9+uwnOL7ag3T+8CRpwE5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83Nzeq2cTva69Yaq26Vo2AU84M1keXJuGvC0nIwX4jIv5KRPzeCPydO0GP7pOgTLAbB71gOpIuyzAP/gKaL0Fq5AJqZi82Oj+iYgL1+T0wI1A9MTfyhIvjLSuo6tR0ROM7H1rtVhvpFlhgJm8IiyNoP44ug0ZtfZ1w5XnR0ma0mU2ymzi2pI6IxUXRft+s1GxwG3ET27NhVvQoga/wLtKhLVaYd3XBtAyE2Q4YGl5qk5Z08RMgJhhjjOjSoCIbltWZ6HKhAxXRzyKozCXltMU+ZAp/acDoep/8J/84d1r44tnc/OajG/WcpIrrjLBUSVhllxEdHlwShudn/cviBqiW/+qVxVLrcXa5EP7Qgz93DdQPPxQ3CVn8fsDCcd67hRDi/KYCvNAJ70BIDPU//HR5eU71qNTmF4v4SxaQW3gn1HmBGV3VwakVGi//wep5m4ZZfw1SA7azBwwGLMrn4eNteowFoCHGqET1Tj6bdBa4MdrQCrM4oZCl1fnCUV4xLOgb6GiSswF/L40ZUM8ifFhRmKIUlZWHqLY9He+vgqILsHyFg8dM4D6waZJo4/4mIs5kcyrfULfSe6rQ0Nbp+2Ez22futM0MaIDHNr6LmSptw9fcZ/ZlevXUv682+/fVZs9cbZZ5L45/dpuJZIJaNEhBv2RmaHqFFl2ANEYT1fst+PIF80xXRj494eM/6eI9uh0ttzD47akRjDmLuCG7dc8nhTKSKZIpLj5zL1rFJuKhFzw9/Q8TBmkx","sidebar_class_name":"post api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Retrieve a Random Place","permalink":"/docs/api/random-place"}}');var o=a(31325),n=a(31736),r=a(47812),s=a.n(r),l=a(38616),c=a.n(l),p=a(67994),d=a.n(p),u=a(54768),m=a.n(u),h=(a(24909),a(96847),a(78121));const f={id:"bulk-postcode-lookup",title:"Bulk Postcode Lookup",description:"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.",sidebar_label:"Bulk Postcode Lookup",hide_title:!0,hide_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DHNr6LmSptw9fcZ/ZlevXUv682+/fVZs9cbZZ5L45/dpuJZIJaNEhBv2RmaHqFFl2ANEYT1fst+PIF80xXRj494eM/6eI9uh0ttzD47akRjDmLuCG7dc8nhTKSKZIpLj5zL1rFJuKhFzw9/Q8TBmkx",sidebar_class_name:"post api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,g={},S=[{value:"Post Data",id:"post-data",level:3},{value:"Bulk Reverse Geocoding",id:"bulk-reverse-geocoding",level:2}];function b(e){const t={code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Bulk Postcode Lookup"}),"\n",(0,o.jsx)(s(),{method:"post",path:"/postcodes",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data."}),"\n",(0,o.jsxs)(t.p,{children:["Be sure to submit JSON requests setting ",(0,o.jsx)(t.code,{children:"Content-Type"})," to ",(0,o.jsx)(t.code,{children:"application/json"}),"."]}),"\n",(0,o.jsx)(t.p,{children:"Accepts up to 100 postcodes."}),"\n",(0,o.jsx)(t.h3,{id:"post-data",children:"Post Data"}),"\n",(0,o.jsx)(t.p,{children:"This method requires a JSON object containing an array of postcodes to be posted, e.g."}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-json",children:'{\n "postcodes": ["PR3 0SG", "M45 6GN", "EX16 5BL"]\n}\n'})}),"\n",(0,o.jsx)(t.h2,{id:"bulk-reverse-geocoding",children:"Bulk Reverse Geocoding"}),"\n",(0,o.jsx)(t.p,{children:"Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations."}),"\n",(0,o.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(c(),{parameters:[]}),"\n",(0,o.jsx)(d(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","pfa","date_of_introduction","date_of_termination","index_of_multiple_deprivation","parliamentary_constituency_2024","senedd_constituency","senedd_constituency_no","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).",example:null},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:"Caerdydd Penarth"},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:14},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",required:["admin_district","admin_county","admin_ward","parish","ccg","ccg_id","ced","nuts","lau2","lsoa","msoa","pfa","parliamentary_constituency","parliamentary_constituency_2024","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2"],properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function C(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/4c458f53.a87fee80.js b/build/assets/js/4c458f53.a87fee80.js deleted file mode 100644 index a9044649f..000000000 --- a/build/assets/js/4c458f53.a87fee80.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[595],{64570(e,t,i){i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>y,default:()=>E,frontMatter:()=>g,metadata:()=>a,toc:()=>S});const a=JSON.parse('{"id":"api/bulk-postcode-lookup","title":"Bulk Postcode Lookup","description":"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.","source":"@site/docs/api/bulk-postcode-lookup.api.mdx","sourceDirName":"api","slug":"/api/bulk-postcode-lookup","permalink":"/docs/api/bulk-postcode-lookup","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"bulk-postcode-lookup","title":"Bulk Postcode Lookup","description":"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.","sidebar_label":"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uez80eUsCf+68veyfH3dZL0lOdjrLEywE+6zPPprY/+ylPu8xX98JM+o/nP2R/+nEXxp0ve+m0E3PHwNBJPjoBdMrE3c7/aHKIJe4C4Xgeur06ARGJVqMohujOltb7OEt5JSrni7+LJ9S8WJAmjoAVSBHp6elIGGqRbQPIbmZ7i9vZXNJn3feMFSG9W1agScI9NU21uZhL8tJSEH+52I+Jsj4o9G4K8iCXruVgJ3u4GdBL1gNpJWQ33v7+X4GqRaLKFm/r6XyxOXCHddavdMcxJPyo080uJ0+QSJumuYceM771rtVpvo5lQcdd4QJfbJfpwMgkZtfZWg9LxoKT3eziaZbRpbEkfC4qpoF29W6g10jFDH5mKUJexL4Cu8i1RoihUW/QB+VsKgbAeMNJbaeoW7DwcIE4oxxu4ulSIbltVI3J0rRzJybfyuRCPErCU8ZJI645m79ST/4TjNnRVtMJubXwhzK5/aqeKWFyqzOayyO1qOjwYOw8uL/qC4GKflv3phMa5VNrtzhX6YgE/djvPTT8UFK4a+H7FwkvcdEYQ4/7073XNDv6RPtKvd/zIYXLpaSmry6yn8T/WJW3RVzmWBmbvwAV3rLt2JQpXfthtm/O0wDdjNHjAYsiifR4933WMqXowoRnVU7+WzncwCaq20W2EeJ9pkYVS+cJRXuwr6hiqa5mygX91SBtSziB5WBKYoo2S3qri67Gy8vyHH3QvkKxwYM07nwKRJorT9Dx4hE83Z/oaqlVKTXnZ0+n7Y3PFZOG07AxqQ2qZ3MZOlY/iSa56+zm7k+deNT/+68emJG58y78XiF7udCMZde4ET0K+ZGZrdLOSu0ZmQier9Hnz9Snmmay0eH+nxX+4+MndpVG5h6NtjI5ggi1A7u/UZp4UwOlMkUlp87rqoik0kpRc8Pv4v4oxusw==","sidebar_class_name":"post api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Retrieve a Random Place","permalink":"/docs/api/random-place"}}');var n=i(31325),o=i(31736),r=i(47812),s=i.n(r),l=i(38616),d=i.n(l),c=i(67994),p=i.n(c),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const g={id:"bulk-postcode-lookup",title:"Bulk Postcode Lookup",description:"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.",sidebar_label:"Bulk Postcode Lookup",hide_title:!0,hide_table_of_contents:!0,api:"eJztPO1y2ziSr9LF+WH7SpIl2U5i3Y89x/F4POOvteTyZsdTDkS2JExAgAOAdnQpV91D3BPek1w1QFIkJcuWEufqqjZVSSQSaHQ3Gv0tfA0sG5ug93twqYwNVYTw9xT1NPijEagENbNcyZMo6AXvU/EZikGnSn1Ok6ARRGhCzRMaFvSCgzDExBpg8Gv/4hzU8E8MLYRKWsYll2NgEpjWbApqBEkGzLTgCm2qJc0T3Fh6GTMbTmhGMQqYjECjSTC0/B6B3TMu2FAgRMyy1q28le8RTKoRrAKTDmNuPRoa/0rRWAMGrSWYnw6VtChtczBN8BMN/8SSRPDQkbv9p1HykwOY05MmNKjTbpeQpvc//fST4wl8YJbRg8GEG4jRTlTkluUaV+UGrTRE9x2jBmBr7Jb69OkT4XUrv95KgNugGH8b9OD32+Dyagfa/ePboAG3wdnuHrw5Pvdfjv7ReQN7709vgz9u5aOD5HEHt6dXeI/aIByjClXE5dhxkt5YzaQRzKKBMSqhPHsMcGlVIQqmBfNcKg9v3cqgESRMsxgtahK2PxoBbaSSBk3Q+xp02236rypL/TQM0ZigEYR+t2hIfZvomQknGDP6ZLkVGPRmsnyVrRI0AjtN6JXfhIAQcLsTkewby2xq3EOTCkvCn2gSf8s9gtkAWsKD4dLiGHXQCEZKx8z6RzvdoBGgTOOg93u33f7jsYA4R92hihONE5SGZDlnlhNl4DIUKe0E8XGsWTLhIYRK6YhL2o0GsCjmkhtL5/MeYahSGTHN3SsZAQoMrdJMAJceP4I9UhrsBPPjgFEhc8+wpzRMpfknLrMPf6VMcDslypmh40WMlErbSfY5VKm0mgbIibmbsKAROPzv3Itp8TUigrhb3T94YDoKGoFQcsxt6hYTzOYfE6YFZ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/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,f={},S=[{value:"Post Data",id:"post-data",level:3},{value:"Bulk Reverse Geocoding",id:"bulk-reverse-geocoding",level:2}];function b(e){const t={code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Bulk Postcode Lookup"}),"\n",(0,n.jsx)(s(),{method:"post",path:"/postcodes",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data."}),"\n",(0,n.jsxs)(t.p,{children:["Be sure to submit JSON requests setting ",(0,n.jsx)(t.code,{children:"Content-Type"})," to ",(0,n.jsx)(t.code,{children:"application/json"}),"."]}),"\n",(0,n.jsx)(t.p,{children:"Accepts up to 100 postcodes."}),"\n",(0,n.jsx)(t.h3,{id:"post-data",children:"Post Data"}),"\n",(0,n.jsx)(t.p,{children:"This method requires a JSON object containing an array of postcodes to be posted, e.g."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-json",children:'{\n "postcodes": ["PR3 0SG", "M45 6GN", "EX16 5BL"]\n}\n'})}),"\n",(0,n.jsx)(t.h2,{id:"bulk-reverse-geocoding",children:"Bulk Reverse Geocoding"}),"\n",(0,n.jsx)(t.p,{children:"Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations."}),"\n",(0,n.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(d(),{parameters:[]}),"\n",(0,n.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. May be empty for areas without county-level administration.",example:""},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function E(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/4c84271f.2abffb28.js b/build/assets/js/4c84271f.2abffb28.js deleted file mode 100644 index f1a223823..000000000 --- a/build/assets/js/4c84271f.2abffb28.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[1516],{26652(e,t,i){i.r(t),i.d(t,{assets:()=>b,contentTitle:()=>g,default:()=>C,frontMatter:()=>y,metadata:()=>o,toc:()=>S});const o=JSON.parse('{"id":"api/get-scottish-postcode","title":"Lookup Scottish Postcode","description":"Lookup a Scottish postcode.","source":"@site/docs/api/get-scottish-postcode.api.mdx","sourceDirName":"api","slug":"/api/get-scottish-postcode","permalink":"/docs/api/get-scottish-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"get-scottish-postcode","title":"Lookup Scottish Postcode","description":"Lookup a Scottish postcode.","sidebar_label":"Lookup Scottish Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztXP1u4ziSf5WC9oBJFrIj2/n0YbCXSXq7s5N0gjjZudlOn5uWaJsbmdSQVLqzgYF7h33DfZJDkfqW/BE7fQccpv/pmKLIX5FVRbLqJ744mkyU0//kDHyhNVNTuBFK+yKgyvnsOgFVvmSRZoI7fedSiMc4AgJZ5Sip3H7gD/yW6lhyBbWm4JxJ6mshn2FncHO+CwHRBIhSwmdE0wC+Mj0FPaV5e3A3pSCpigRXFHzxRKUyNcZxGMLg5hzGjIYBKKr74IuY+ywEIilxgYamLxLCVyIDN4dDeAD3P0NEZMjIjHJN5DNMqJhIEk0ZVS5MKQn1FEbCvMi4phNJUHggsZ4KyfSza8H/Q3Bqa8gZDVCKpEjEOop1AiUUPgnNS4pqHVLs1AWfPbEQYTA1dYGpkPDABW46IubBowtakicatrRofRXyMWnv4u5y7/L03oVYjghvyRil9EOiFBsz3zTgwuDi6hwk4Y8u3F6fuuBTrmJlBkkr14wCDqQvpB3fgPEJvB8MYA/EeMx8hm2iAkDMAypN5S+m4AuI0d+pr81s34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lZgP3P5ub5f7wB/yCwNx9hz9P8S4lC0uBTzgmxolh+uBleFLM7P06IgzFV7Rrmrxr2vry5csDXzRTyeMHjgwug8r3aaQVvH93Z9nJ14O79KIv1bY/rf4ovAwHkvvQwFyl86V6JdqXVJr0zjOFv9/h5X6FWxvxc2l7ZxS3typE0pwQPtzd3cDA3HKW0H3oN0RnRusvg+uPNxmyXcNBU/gpmh/GgXEmppqyN7e5sJ8UEBiRIH0Pi/cTBmfiBozUB+nbRmft9XuW5VbDhJMcKpF2bL7z1sVbKUcieE6HAcMnuIu1Q4SFJYXJrh5M7kwzPjCvb2/hwxFPruqiM8LQDpAQIaT+DxZQErby+fVFO35EJ2xNZ2Cr1cyn8bW9pFHjFvHZjPCCGSaXfNZujKtaxEt+Y97vF4P+fjHo7xeD/n+8GDTZ9Gn6Te9FIWH2dgRpNox2d/HJSXcXTn7THC6f/exGr8+uMxVKY92XF/xY4l6G8zkW21s/+58+53sHswkJmMK/g+yWz4WeZ+c2uYRyF15xy2ijWEkh4c9mKxPG+MtxnUf6XLzodP7ZJgACKg1W+/jUrK6FF2t3iJb2Z+/f3Tnz+f8APXFeHQ==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Scottish Postcodes","permalink":"/docs/api/scottish-postcodes"},"next":{"title":"Outward Codes","permalink":"/docs/api/outward-codes"}}');var n=i(31325),a=i(31736),l=i(47812),r=i.n(l),s=i(38616),c=i.n(s),d=i(67994),p=i.n(d),u=i(54768),m=i.n(u),h=(i(24909),i(96847),i(78121));const y={id:"get-scottish-postcode",title:"Lookup Scottish Postcode",description:"Lookup a Scottish postcode.",sidebar_label:"Lookup Scottish Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJztXP1u4ziSf5WC9oBJFrIj2/n0YbCXSXq7s5N0gjjZudlOn5uWaJsbmdSQVLqzgYF7h33DfZJDkfqW/BE7fQccpv/pmKLIX5FVRbLqJ744mkyU0//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api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},g=void 0,b={},S=[];function x(e){const t={code:"code",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Lookup Scottish Postcode"}),"\n",(0,n.jsx)(r(),{method:"get",path:"/scotland/postcodes/{postcode}",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Lookup a Scottish postcode."}),"\n",(0,n.jsxs)(t.p,{children:["Returns Scottish Postcode Directory (SPD) data associated with the postcode. The response covers the full SPD field set: council area, electoral ward, Scottish and UK parliamentary geographies, health board, integration authority, data zone, intermediate zone, output area, locality, settlement, civil parish, island, national park, travel-to-work area, ITL/LAU, urban-rural classification, SIMD rank, ROA, census counts, and the corresponding GSS / official codes under the ",(0,n.jsx)(t.code,{children:"codes"})," object."]}),"\n",(0,n.jsx)(t.p,{children:"Top-level fields hold the latest (canonical) value for each datapoint. Year-suffixed fields surface prior versions where the SPD publishes them."}),"\n",(0,n.jsxs)(t.p,{children:["Returns ",(0,n.jsx)(t.code,{children:"404"})," if the postcode does not exist in SPD or is not valid."]}),"\n",(0,n.jsxs)(t.p,{children:["For postcodes not in SPD but present in ONSPD (i.e. non-Scottish postcodes), a ",(0,n.jsx)(t.code,{children:"404"}),' is returned with the error message "Postcode exists in ONSPD but not in SPD."']}),"\n",(0,n.jsx)(t.p,{children:"Source: Scottish Postcode Directory (National Records of Scotland)."}),"\n",(0,n.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(c(),{parameters:[{name:"postcode",in:"path",description:"Specifies the postcode you wish to query",required:!0,style:"simple",explode:!1,schema:{type:"string"}}]}),"\n",(0,n.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Scottish Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Scottish Postcode Directory (SPD) data for the requested postcode.",type:"object",required:["postcode","longitude","latitude","council_area","electoral_ward","health_board_area","data_zone","intermediate_zone","output_area","scottish_parliamentary_constituency","scottish_parliamentary_region","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"The Royal Mail postcode (e.g., AB10 1XG).",example:"AB10 1XG",pattern:"^[A-Z]{1,2}[0-9][A-Z0-9]? ?[0-9][A-Z]{2}$"},pc_compact:{title:"Compact Postcode",type:"string",description:"Postcode with all spaces removed.",example:"AB101XG"},outcode:{title:"Outward Code",type:"string",description:"First part of the postcode (before the space).",example:"AB10"},incode:{title:"Inward Code",type:"string",description:"Second part of the postcode (after the space).",example:"1XG"},postcode_district:{title:"Postcode District",type:"string",description:"Equivalent to the outward code.",example:"AB10"},postcode_sector:{title:"Postcode Sector",type:"string",description:"Outward code plus the first character of the inward code.",example:"AB10 1"},user_type:{title:"User Type",type:"string",nullable:!0,description:'SPD user-type indicator ("0" = small user, "1" = large user).',example:"0"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"Date the postcode was introduced (YYYYMM).",example:"198001"},date_of_deletion:{title:"Date of Deletion",type:"string",nullable:!0,description:"Date the postcode was deleted (YYYYMM). Null for live postcodes.",example:null},linked_small_user_postcode:{title:"Linked Small User Postcode",type:"string",nullable:!0,description:"For large-user postcodes, the linked small-user postcode (if any).",example:null},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude.",example:-2.1025},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude.",example:57.14945},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"OS National Grid easting (1m resolution).",example:393859},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"OS National Grid northing (1m resolution).",example:806073},split_indicator:{title:"Split Indicator",type:"string",nullable:!0,description:"SPD split indicator. Marks postcodes that span more than one administrative unit.",example:"0"},grid_link_indicator:{title:"Grid Link Indicator",type:"string",nullable:!0,description:"How the postcode was linked to its grid reference (1 = match by address, 2 = match by visual inspection, 3 = approximate match, etc.).",example:"1"},grid_link_positional_accuracy:{title:"Grid Link Positional Accuracy",type:"string",nullable:!0,description:"Positional accuracy of the grid reference.",example:"1"},council_area:{title:"Council Area",type:"string",nullable:!0,description:"2019 council area name. The current single-tier local authority.",example:"Aberdeen City"},electoral_ward:{title:"Electoral Ward",type:"string",nullable:!0,description:"2022 electoral ward name.",example:"Midstocket/Rosemount"},registration_district:{title:"Registration District",type:"string",nullable:!0,description:"2007 registration district code. (Names are not provided in SPD.)",example:"RD20"},enterprise_region:{title:"Enterprise Region",type:"string",nullable:!0,description:"2008 enterprise region name.",example:"Highlands and Islands"},strategic_development_planning_area:{title:"Strategic Development Planning Area",type:"string",nullable:!0,description:"2013 SDPA code. Names are not provided in SPD.",example:"SD01"},local_government_district:{title:"Local Government District",type:"string",nullable:!0,description:"1995 local government district name (the most recent boundary before unitary council areas).",example:"Aberdeen City"},local_government_district_1991:{title:"Local Government District (1991)",type:"string",nullable:!0,description:"1991 local government district name (historical).",example:"City of Aberdeen"},uk_parliamentary_constituency:{title:"UK Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"2024 UK Parliamentary constituency name.",example:"Aberdeen South"},scottish_parliamentary_region:{title:"Scottish Parliamentary Region (2021)",type:"string",nullable:!0,description:"2021 Scottish Parliamentary region name.",example:"North East Scotland"},scottish_parliamentary_constituency:{title:"Scottish Parliamentary Constituency (2021)",type:"string",nullable:!0,description:"2021 Scottish Parliamentary constituency name.",example:"Aberdeen Central"},health_board_area:{title:"Health Board Area (2019)",type:"string",nullable:!0,description:"2019 NHS health board area name. Current operational boundary.",example:"Grampian"},health_board_area_2006:{title:"Health Board Area (2006)",type:"string",nullable:!0,description:"2006 health board area name (historical).",example:"Grampian"},health_board_area_1995:{title:"Health Board Area (1995)",type:"string",nullable:!0,description:"1995 health board area name (historical).",example:"Grampian"},integration_authority:{title:"Integration Authority (2019)",type:"string",nullable:!0,description:"2019 health and social care integration authority name.",example:"Aberdeen City"},output_area:{title:"Output Area (2022)",type:"string",nullable:!0,description:"2022 census Output Area code. The smallest census geography.",example:"S00136537"},output_area_2011:{title:"Output Area (2011)",type:"string",nullable:!0,description:"2011 census Output Area code.",example:"S00088970"},output_area_2001:{title:"Output Area (2001)",type:"string",nullable:!0,description:"2001 census Output Area code.",example:"S00000700"},output_area_1991:{title:"Output Area (1991)",type:"string",nullable:!0,description:"1991 census Output Area code.",example:null},data_zone:{title:"Data Zone (2022)",type:"string",nullable:!0,description:"2022 Data Zone name. Scottish equivalent of LSOA.",example:"West End North - 01"},data_zone_2011:{title:"Data Zone (2011)",type:"string",nullable:!0,description:"2011 Data Zone code.",example:"S01006571"},data_zone_2001:{title:"Data Zone (2001)",type:"string",nullable:!0,description:"2001 Data Zone code.",example:"S01000125"},intermediate_zone:{title:"Intermediate Zone (2022)",type:"string",nullable:!0,description:"2022 Intermediate Zone name. Scottish equivalent of MSOA.",example:"West End North"},intermediate_zone_2011:{title:"Intermediate Zone (2011)",type:"string",nullable:!0,description:"2011 Intermediate Zone code.",example:"S02000007"},intermediate_zone_2001:{title:"Intermediate Zone (2001)",type:"string",nullable:!0,description:"2001 Intermediate Zone code.",example:"S02000017"},locality:{title:"Locality (2022)",type:"string",nullable:!0,description:"2022 Settlement-and-Locality locality name.",example:"Aberdeen"},locality_2020:{title:"Locality (2020)",type:"string",nullable:!0,description:"2020 locality name (historical).",example:"Aberdeen"},locality_2001:{title:"Locality (2001)",type:"string",nullable:!0,description:"2001 locality name (historical).",example:"Aberdeen"},locality_1991:{title:"Locality (1991)",type:"string",nullable:!0,description:"1991 locality name (historical).",example:null},settlement:{title:"Settlement (2022)",type:"string",nullable:!0,description:"2022 settlement name.",example:"Aberdeen, Milltimber, and Peterculter"},settlement_2020:{title:"Settlement (2020)",type:"string",nullable:!0,description:"2020 settlement name (historical).",example:"Aberdeen Settlement"},settlement_2001:{title:"Settlement (2001)",type:"string",nullable:!0,description:"2001 settlement name (historical).",example:"Aberdeen Settlement"},civil_parish:{title:"Civil Parish (1930)",type:"string",nullable:!0,description:"1930 Scottish civil parish name (the latest historical baseline; civil parishes were abolished as administrative units in 1975).",example:"Old Machar"},island:{title:"Island",type:"string",nullable:!0,description:'Island name where the postcode is located. "Mainland of Scotland" for non-island postcodes.',example:"Mainland of Scotland"},national_park:{title:"National Park (2010)",type:"string",nullable:!0,description:"2010 national park name (Cairngorms / Loch Lomond and the Trossachs). Null for non-park postcodes.",example:null},travel_to_work_area:{title:"Travel to Work Area (2011)",type:"string",nullable:!0,description:"2011 Travel to Work Area name.",example:"Aberdeen"},lau_level_1:{title:"Local Administrative Unit Level 1 (2025)",type:"string",nullable:!0,description:"2025 LAU level 1 name. Replaces the previous NUTS classifications.",example:"Aberdeen City"},itl_level_2:{title:"International Territorial Level 2 (2025)",type:"string",nullable:!0,description:"2025 ITL level 2 name. Mid-tier UK statistical geography (replaces NUTS 2).",example:"North Eastern Scotland"},itl_level_3:{title:"International Territorial Level 3 (2025)",type:"string",nullable:!0,description:"2025 ITL level 3 name. The most granular ITL geography (replaces NUTS 3).",example:"Aberdeen City and Aberdeenshire"},urban_rural_6_fold:{title:"Urban-Rural Classification (6-fold, 2022)",type:"string",nullable:!0,description:"2022 Scottish Government 6-fold urban-rural classification code:\n\n* 1: Large Urban Areas\n* 2: Other Urban Areas\n* 3: Accessible Small Towns\n* 4: Remote Small Towns\n* 5: Accessible Rural\n* 6: Remote Rural\n",example:"1"},urban_rural_8_fold:{title:"Urban-Rural Classification (8-fold, 2022)",type:"string",nullable:!0,description:'2022 Scottish Government 8-fold urban-rural classification code (1\u20138). Splits "Remote" categories into "Remote" and "Very Remote".',example:"1"},scottish_index_of_multiple_deprivation:{title:"Scottish Index of Multiple Deprivation (2020)",type:"integer",format:"int32",nullable:!0,description:"SIMD 2020 rank for the postcode's Data Zone (1 = most deprived, 6976 = least deprived).",example:6414},roa_community_planning_partnership:{title:"Community Planning Partnership (ROA 2006)",type:"string",nullable:!0,description:"2006 Community Planning Partnership name (Regional Outcome Agreement geography).",example:"Aberdeen City"},roa_local:{title:"Local Authority (ROA 2006)",type:"string",nullable:!0,description:"2006 Regional Outcome Agreement local authority name.",example:"Aberdeen City"},census_household_count:{title:"Census Household Count (2022)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded against this postcode at the 2022 census. May be 0 for empty or zero-suppressed postcodes.",example:0},census_household_count_2011:{title:"Census Household Count (2011)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 2011 census.",example:8},census_household_count_2001:{title:"Census Household Count (2001)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 2001 census.",example:12},census_household_count_1991:{title:"Census Household Count (1991)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 1991 census.",example:null},census_population_count:{title:"Census Population Count (2022)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded against this postcode at the 2022 census.",example:0},census_population_count_2011:{title:"Census Population Count (2011)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 2011 census.",example:18},census_population_count_2001:{title:"Census Population Count (2001)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 2001 census.",example:26},census_population_count_1991:{title:"Census Population Count (1991)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 1991 census.",example:null},never_digitised:{title:"Never Digitised",type:"boolean",description:"True if the postcode has never been digitised (no grid reference established).",example:!1},codes:{title:"Codes",type:"object",description:"GSS / official codes for the corresponding name fields above.",properties:{council_area:{title:"Council Area Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 council area.",example:"S12000033"},electoral_ward:{title:"Electoral Ward Code (2022)",type:"string",nullable:!0,description:"9-character GSS code for the 2022 electoral ward.",example:"S13002841"},enterprise_region:{title:"Enterprise Region Code (2008)",type:"string",nullable:!0,description:"Code for the 2008 enterprise region.",example:"S99999999"},local_government_district:{title:"Local Government District Code (1995)",type:"string",nullable:!0,description:"Code for the 1995 local government district.",example:"S12000033"},local_government_district_1991:{title:"Local Government District Code (1991)",type:"string",nullable:!0,description:"Code for the 1991 local government district.",example:"S99999999"},uk_parliamentary_constituency:{title:"UK Parliamentary Constituency Code (2024)",type:"string",nullable:!0,description:"9-character GSS code for the 2024 UK Parliamentary constituency.",example:"S14000061"},scottish_parliamentary_region:{title:"Scottish Parliamentary Region Code (2021)",type:"string",nullable:!0,description:"9-character GSS code for the 2021 Scottish Parliamentary region.",example:"S17000016"},scottish_parliamentary_constituency:{title:"Scottish Parliamentary Constituency Code (2021)",type:"string",nullable:!0,description:"9-character GSS code for the 2021 Scottish Parliamentary constituency.",example:"S16000094",pattern:"^S[0-9]{8}$"},health_board_area:{title:"Health Board Area Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 NHS health board area.",example:"S08000020"},health_board_area_2006:{title:"Health Board Area Code (2006)",type:"string",nullable:!0,description:"GSS code for the 2006 health board area.",example:"S08000006"},health_board_area_1995:{title:"Health Board Area Code (1995)",type:"string",nullable:!0,description:"Code for the 1995 health board area.",example:"0"},integration_authority:{title:"Integration Authority Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 integration authority.",example:"S37000002"},data_zone:{title:"Data Zone Code (2022)",type:"string",nullable:!0,description:"GSS code for the 2022 Data Zone.",example:"S01013550"},data_zone_2011:{title:"Data Zone Code (2011)",type:"string",nullable:!0,description:"GSS code for the 2011 Data Zone.",example:"S01006571"},data_zone_2001:{title:"Data Zone Code (2001)",type:"string",nullable:!0,description:"Code for the 2001 Data Zone.",example:"S01000125"},intermediate_zone:{title:"Intermediate Zone Code (2022)",type:"string",nullable:!0,description:"GSS code for the 2022 Intermediate Zone.",example:"S02002527"},intermediate_zone_2011:{title:"Intermediate Zone Code (2011)",type:"string",nullable:!0,description:"GSS code for the 2011 Intermediate Zone.",example:"S02000007"},intermediate_zone_2001:{title:"Intermediate Zone Code (2001)",type:"string",nullable:!0,description:"Code for the 2001 Intermediate Zone.",example:"S02000017"},locality:{title:"Locality Code (2022)",type:"string",nullable:!0,description:"Code for the 2022 locality.",example:"S19000001"},settlement:{title:"Settlement Code (2022)",type:"string",nullable:!0,description:"Code for the 2022 settlement.",example:"S20000001"},civil_parish:{title:"Civil Parish Code (1930)",type:"string",nullable:!0,description:"Code for the 1930 civil parish.",example:"S07000001"},island:{title:"Island Code",type:"string",nullable:!0,description:"Island identifier code.",example:"S20000001"},national_park:{title:"National Park Code (2010)",type:"string",nullable:!0,description:"Code for the 2010 national park.",example:null},travel_to_work_area:{title:"Travel to Work Area Code (2011)",type:"string",nullable:!0,description:"Code for the 2011 Travel to Work Area.",example:"S22000047"},lau_level_1:{title:"LAU Level 1 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 LAU level 1 area.",example:"TLM50"},itl_level_2:{title:"ITL Level 2 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 ITL level 2 area.",example:"TLM5"},itl_level_3:{title:"ITL Level 3 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 ITL level 3 area.",example:"TLM50"},registration_district:{title:"Registration District Code (2007)",type:"string",nullable:!0,description:"Code for the 2007 registration district.",example:"RD20"},strategic_development_planning_area:{title:"SDPA Code (2013)",type:"string",nullable:!0,description:"Code for the 2013 strategic development planning area.",example:"SD01"},roa_community_planning_partnership:{title:"Community Planning Partnership Code (ROA 2006)",type:"string",nullable:!0,description:"Code for the 2006 community planning partnership.",example:"S12000033"},roa_local:{title:"ROA Local Code (2006)",type:"string",nullable:!0,description:"Code for the 2006 ROA local authority.",example:"S12000033"}}}},title:"ScottishPostcodes"}}}}}},404:{description:"Postcode not found"}}})]})}function C(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(x,{...e})}):x(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/4c84271f.d619ac4b.js b/build/assets/js/4c84271f.d619ac4b.js new file mode 100644 index 000000000..ee5de0424 --- /dev/null +++ b/build/assets/js/4c84271f.d619ac4b.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[1516],{26652(e,t,i){i.r(t),i.d(t,{assets:()=>b,contentTitle:()=>g,default:()=>x,frontMatter:()=>y,metadata:()=>o,toc:()=>S});const o=JSON.parse('{"id":"api/get-scottish-postcode","title":"Lookup Scottish Postcode","description":"Lookup a Scottish postcode.","source":"@site/docs/api/get-scottish-postcode.api.mdx","sourceDirName":"api","slug":"/api/get-scottish-postcode","permalink":"/docs/api/get-scottish-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"get-scottish-postcode","title":"Lookup Scottish Postcode","description":"Lookup a Scottish postcode.","sidebar_label":"Lookup Scottish Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztXP1u4ziSf5WC9oBJFrIj2/n0YbCX6fR2ZyfpBHGyc7OdPjct0TY3MqkhqaSzgYF7h3vDe5JDkfqW/BE7fXs4TP/TMUWRvyKrisXiT3xxNJkop//ZGfhCa6amcC2U9kVAlfPFdQKqfMkizQR3+s6FEA9xBASyylFSuX3P7/kN1bHkCmpNwRmT1NdCPsPO4PpsFwKiCRClhM+IpgE8MT0FPaV5e3A7pSCpigRXFHzxSKUyNcZxGMLg+gzGjIYBKKr74IuY+ywEIilxgYamLxLCE5GBm8MhPIC7nyEiMmRkRrkm8hkmVEwkiaaMKhemlIR6CiNhXmRc04kkKDyQWE+FZPrZteD/ITi1NeSMBihFUiRiHcU6gRIKn4TmJUW1Dil26oLPHlmIMJiausBUSHjgAjcdEfPgwQUtySMNW1q0noR8SNo7v73Yuzi9cyGWI8JbMkYp/ZAoxcbMNw24MDi/PANJ+IMLN1enLviUq1iZQdLKNaOAA+kLacc3YHwCHwYD2AMxHjOfYZuoABDzgEpT+asp+Api9HfqazPbtyJqhfSRhnYmFExFaFsOiaZKw45PuODMJ+EuPJIwpjAWEijxp2YII8G4bsOvlMiWisdj9o0GaVMqlmPiU4gkExJw7pngCp6mVFLTBSpAFI9C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whpKLMJGwc9z22h6OCMOzJ7MRSG5kvDy/ddxK/yKi3I5WW8jJXvKS2sO6BRVBFDfZaVErvwrWQsbYVF2NEScrzWppdAPhq6yHhVfJYVVk1RIYS1o4zgrtFbOIBGOaCRVYLDMbuPvZXND5hz/gFyfmClH8eYpX0llYCnzCkUhBDDMM7xSVYmavKRNhKJ7Qrmnyrmnr69ev93zRTCWP7zky/gwq36eRVvDh/a1ls18NbtP7ElXb/rT6o/BOMUiulQRzI9nX6s2SX1Np0qsjFf5+j3ekFi6/xVsn7NV73F5OE0mzQ/h4e3sNA3NZZEIPo98QnRmtvwyuPl1nyMyXyVThp4t+GAfGmZhqyl6A6cJ+UkBgRIL0PSzeTxi/iRswUh+kbxudtbeYWlZkDRNOcqhE2rG5LkMXL/cdieA5HQZMn2AUa4cIC0sKk93gmlw9aXxgXt9eZoojntx4SGeEoR0ggUZI/W8soCRs5fPri3b8gE7Yms7AVquZT+Nre0mjxi3isxnhBTNM7kquXbxZtYiX/OLR3+9X/v1+5d/vV/7/eL9yEvRp+k3vRSFh9pIZaQJGG118dtLowskv7MTls59djPjFdaZCaaz78oIf19zJcD7HYnt5cv/zlzx2MEFIwBT+HWSXJS/0PDs3yV2+u/CKy5obxUoKCX82oUwY4y/HdR7oc/G+6PkXewAQUGmw2senZnUtvFi7irkUn314f+vM5/8DFJMxpQ==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Scottish Postcodes","permalink":"/docs/api/scottish-postcodes"},"next":{"title":"Outward Codes","permalink":"/docs/api/outward-codes"}}');var a=i(31325),n=i(31736),l=i(47812),r=i.n(l),s=i(38616),c=i.n(s),p=i(67994),d=i.n(p),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const y={id:"get-scottish-postcode",title:"Lookup Scottish Postcode",description:"Lookup a Scottish postcode.",sidebar_label:"Lookup Scottish Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJzt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dieA5HQZMn2AUa4cIC0sKk93gmlw9aXxgXt9eZoojntx4SGeEoR0ggUZI/W8soCRs5fPri3b8gE7Yms7AVquZT+Nre0mjxi3isxnhBTNM7kquXbxZtYiX/OLR3+9X/v1+5d/vV/7/eL9yEvRp+k3vRSFh9pIZaQJGG118dtLowskv7MTls59djPjFdaZCaaz78oIf19zJcD7HYnt5cv/zlzx2MEFIwBT+HWSXJS/0PDs3yV2+u/CKy5obxUoKCX82oUwY4y/HdR7oc/G+6PkXewAQUGmw2senZnUtvFi7irkUn314f+vM5/8DFJMxpQ==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},g=void 0,b={},S=[];function C(e){const t={code:"code",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Lookup Scottish Postcode"}),"\n",(0,a.jsx)(r(),{method:"get",path:"/scotland/postcodes/{postcode}",context:"endpoint"}),"\n",(0,a.jsx)(t.p,{children:"Lookup a Scottish postcode."}),"\n",(0,a.jsxs)(t.p,{children:["Returns Scottish Postcode Directory (SPD) data associated with the postcode. The response covers the full SPD field set: council area, electoral ward, Scottish and UK parliamentary geographies, health board, integration authority, data zone, intermediate zone, output area, locality, settlement, civil parish, island, national park, travel-to-work area, ITL/LAU, urban-rural classification, SIMD rank, ROA, census counts, and the corresponding GSS / official codes under the ",(0,a.jsx)(t.code,{children:"codes"})," object."]}),"\n",(0,a.jsx)(t.p,{children:"Top-level fields hold the latest (canonical) value for each datapoint. Year-suffixed fields surface prior versions where the SPD publishes them."}),"\n",(0,a.jsxs)(t.p,{children:["Returns ",(0,a.jsx)(t.code,{children:"404"})," if the postcode does not exist in SPD or is not valid."]}),"\n",(0,a.jsxs)(t.p,{children:["For postcodes not in SPD but present in ONSPD (i.e. non-Scottish postcodes), a ",(0,a.jsx)(t.code,{children:"404"}),' is returned with the error message "Postcode exists in ONSPD but not in SPD."']}),"\n",(0,a.jsx)(t.p,{children:"Source: Scottish Postcode Directory (National Records of Scotland)."}),"\n",(0,a.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,a.jsx)(c(),{parameters:[{name:"postcode",in:"path",description:"Specifies the postcode you wish to query",required:!0,style:"simple",explode:!1,schema:{type:"string"}}]}),"\n",(0,a.jsx)(d(),{title:"Body",body:void 0}),"\n",(0,a.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Scottish Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Scottish Postcode Directory (SPD) data for the requested postcode.",type:"object",required:["postcode","longitude","latitude","council_area","electoral_ward","health_board_area","data_zone","intermediate_zone","output_area","scottish_parliamentary_constituency","scottish_parliamentary_region","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"The Royal Mail postcode (e.g., AB10 1XG).",example:"AB10 1XG",pattern:"^[A-Z]{1,2}[0-9][A-Z0-9]? ?[0-9][A-Z]{2}$"},pc_compact:{title:"Compact Postcode",type:"string",description:"Postcode with all spaces removed.",example:"AB101XG"},outcode:{title:"Outward Code",type:"string",description:"First part of the postcode (before the space).",example:"AB10"},incode:{title:"Inward Code",type:"string",description:"Second part of the postcode (after the space).",example:"1XG"},postcode_district:{title:"Postcode District",type:"string",description:"Equivalent to the outward code.",example:"AB10"},postcode_sector:{title:"Postcode Sector",type:"string",description:"Outward code plus the first character of the inward code.",example:"AB10 1"},user_type:{title:"User Type",type:"string",nullable:!0,description:'SPD user-type indicator ("0" = small user, "1" = large user).',example:"0"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"Date the postcode was introduced (YYYYMM).",example:"198001"},date_of_deletion:{title:"Date of Deletion",type:"string",nullable:!0,description:"Date the postcode was deleted (YYYYMM). Null for live postcodes.",example:null},linked_small_user_postcode:{title:"Linked Small User Postcode",type:"string",nullable:!0,description:"For large-user postcodes, the linked small-user postcode (if any).",example:null},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude.",example:-2.1025},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude.",example:57.14945},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"OS National Grid easting (1m resolution).",example:393859},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"OS National Grid northing (1m resolution).",example:806073},split_indicator:{title:"Split Indicator",type:"string",nullable:!0,description:"SPD split indicator. Marks postcodes that span more than one administrative unit.",example:"0"},grid_link_indicator:{title:"Grid Link Indicator",type:"string",nullable:!0,description:"How the postcode was linked to its grid reference (1 = match by address, 2 = match by visual inspection, 3 = approximate match, etc.).",example:"1"},grid_link_positional_accuracy:{title:"Grid Link Positional Accuracy",type:"string",nullable:!0,description:"Positional accuracy of the grid reference.",example:"1"},council_area:{title:"Council Area",type:"string",nullable:!0,description:"2019 council area name. The current single-tier local authority.",example:"Aberdeen City"},electoral_ward:{title:"Electoral Ward",type:"string",nullable:!0,description:"2022 electoral ward name.",example:"Midstocket/Rosemount"},registration_district:{title:"Registration District",type:"string",nullable:!0,description:"2007 registration district code. (Names are not provided in SPD.)",example:"RD20"},enterprise_region:{title:"Enterprise Region",type:"string",nullable:!0,description:"2008 enterprise region name.",example:"Highlands and Islands"},strategic_development_planning_area:{title:"Strategic Development Planning Area",type:"string",nullable:!0,description:"2013 SDPA code. Names are not provided in SPD.",example:"SD01"},local_government_district:{title:"Local Government District",type:"string",nullable:!0,description:"1995 local government district name (the most recent boundary before unitary council areas).",example:"Aberdeen City"},local_government_district_1991:{title:"Local Government District (1991)",type:"string",nullable:!0,description:"1991 local government district name (historical).",example:"City of Aberdeen"},uk_parliamentary_constituency:{title:"UK Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"2024 UK Parliamentary constituency name.",example:"Aberdeen South"},scottish_parliamentary_region:{title:"Scottish Parliamentary Region (2025)",type:"string",nullable:!0,description:"2025 Scottish Parliamentary region name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.",example:"North East Scotland"},scottish_parliamentary_region_2021:{title:"Scottish Parliamentary Region (2021)",type:"string",nullable:!0,description:"2021 Scottish Parliamentary region name (superseded by the 2025 designation).",example:"North East Scotland"},scottish_parliamentary_constituency:{title:"Scottish Parliamentary Constituency (2025)",type:"string",nullable:!0,description:"2025 Scottish Parliamentary constituency name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.",example:"Aberdeen Central"},scottish_parliamentary_constituency_2021:{title:"Scottish Parliamentary Constituency (2021)",type:"string",nullable:!0,description:"2021 Scottish Parliamentary constituency name (superseded by the 2025 designation).",example:"Aberdeen Central"},health_board_area:{title:"Health Board Area (2019)",type:"string",nullable:!0,description:"2019 NHS health board area name. Current operational boundary.",example:"Grampian"},health_board_area_2006:{title:"Health Board Area (2006)",type:"string",nullable:!0,description:"2006 health board area name (historical).",example:"Grampian"},health_board_area_1995:{title:"Health Board Area (1995)",type:"string",nullable:!0,description:"1995 health board area name (historical).",example:"Grampian"},integration_authority:{title:"Integration Authority (2019)",type:"string",nullable:!0,description:"2019 health and social care integration authority name.",example:"Aberdeen City"},output_area:{title:"Output Area (2022)",type:"string",nullable:!0,description:"2022 census Output Area code. The smallest census geography.",example:"S00136537"},output_area_2011:{title:"Output Area (2011)",type:"string",nullable:!0,description:"2011 census Output Area code.",example:"S00088970"},output_area_2001:{title:"Output Area (2001)",type:"string",nullable:!0,description:"2001 census Output Area code.",example:"S00000700"},output_area_1991:{title:"Output Area (1991)",type:"string",nullable:!0,description:"1991 census Output Area code.",example:null},data_zone:{title:"Data Zone (2022)",type:"string",nullable:!0,description:"2022 Data Zone name. Scottish equivalent of LSOA.",example:"West End North - 01"},data_zone_2011:{title:"Data Zone (2011)",type:"string",nullable:!0,description:"2011 Data Zone code.",example:"S01006571"},data_zone_2001:{title:"Data Zone (2001)",type:"string",nullable:!0,description:"2001 Data Zone code.",example:"S01000125"},intermediate_zone:{title:"Intermediate Zone (2022)",type:"string",nullable:!0,description:"2022 Intermediate Zone name. Scottish equivalent of MSOA.",example:"West End North"},intermediate_zone_2011:{title:"Intermediate Zone (2011)",type:"string",nullable:!0,description:"2011 Intermediate Zone code.",example:"S02000007"},intermediate_zone_2001:{title:"Intermediate Zone (2001)",type:"string",nullable:!0,description:"2001 Intermediate Zone code.",example:"S02000017"},locality:{title:"Locality (2022)",type:"string",nullable:!0,description:"2022 Settlement-and-Locality locality name.",example:"Aberdeen"},locality_2020:{title:"Locality (2020)",type:"string",nullable:!0,description:"2020 locality name (historical).",example:"Aberdeen"},locality_2001:{title:"Locality (2001)",type:"string",nullable:!0,description:"2001 locality name (historical).",example:"Aberdeen"},locality_1991:{title:"Locality (1991)",type:"string",nullable:!0,description:"1991 locality name (historical).",example:null},settlement:{title:"Settlement (2022)",type:"string",nullable:!0,description:"2022 settlement name.",example:"Aberdeen, Milltimber, and Peterculter"},settlement_2020:{title:"Settlement (2020)",type:"string",nullable:!0,description:"2020 settlement name (historical).",example:"Aberdeen Settlement"},settlement_2001:{title:"Settlement (2001)",type:"string",nullable:!0,description:"2001 settlement name (historical).",example:"Aberdeen Settlement"},civil_parish:{title:"Civil Parish (1930)",type:"string",nullable:!0,description:"1930 Scottish civil parish name (the latest historical baseline; civil parishes were abolished as administrative units in 1975).",example:"Old Machar"},island:{title:"Island",type:"string",nullable:!0,description:'Island name where the postcode is located. "Mainland of Scotland" for non-island postcodes.',example:"Mainland of Scotland"},national_park:{title:"National Park (2010)",type:"string",nullable:!0,description:"2010 national park name (Cairngorms / Loch Lomond and the Trossachs). Null for non-park postcodes.",example:null},travel_to_work_area:{title:"Travel to Work Area (2011)",type:"string",nullable:!0,description:"2011 Travel to Work Area name.",example:"Aberdeen"},lau_level_1:{title:"Local Administrative Unit Level 1 (2025)",type:"string",nullable:!0,description:"2025 LAU level 1 name. Replaces the previous NUTS classifications.",example:"Aberdeen City"},itl_level_2:{title:"International Territorial Level 2 (2025)",type:"string",nullable:!0,description:"2025 ITL level 2 name. Mid-tier UK statistical geography (replaces NUTS 2).",example:"North Eastern Scotland"},itl_level_3:{title:"International Territorial Level 3 (2025)",type:"string",nullable:!0,description:"2025 ITL level 3 name. The most granular ITL geography (replaces NUTS 3).",example:"Aberdeen City and Aberdeenshire"},urban_rural_6_fold:{title:"Urban-Rural Classification (6-fold, 2022)",type:"string",nullable:!0,description:"2022 Scottish Government 6-fold urban-rural classification code:\n\n* 1: Large Urban Areas\n* 2: Other Urban Areas\n* 3: Accessible Small Towns\n* 4: Remote Small Towns\n* 5: Accessible Rural\n* 6: Remote Rural\n",example:"1"},urban_rural_8_fold:{title:"Urban-Rural Classification (8-fold, 2022)",type:"string",nullable:!0,description:'2022 Scottish Government 8-fold urban-rural classification code (1\u20138). Splits "Remote" categories into "Remote" and "Very Remote".',example:"1"},scottish_index_of_multiple_deprivation:{title:"Scottish Index of Multiple Deprivation (2020)",type:"integer",format:"int32",nullable:!0,description:"SIMD 2020 rank for the postcode's Data Zone (1 = most deprived, 6976 = least deprived).",example:6414},roa_community_planning_partnership:{title:"Community Planning Partnership (ROA 2006)",type:"string",nullable:!0,description:"2006 Community Planning Partnership name (Regional Outcome Agreement geography).",example:"Aberdeen City"},roa_local:{title:"Local Authority (ROA 2006)",type:"string",nullable:!0,description:"2006 Regional Outcome Agreement local authority name.",example:"Aberdeen City"},census_household_count:{title:"Census Household Count (2022)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded against this postcode at the 2022 census. May be 0 for empty or zero-suppressed postcodes.",example:0},census_household_count_2011:{title:"Census Household Count (2011)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 2011 census.",example:8},census_household_count_2001:{title:"Census Household Count (2001)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 2001 census.",example:12},census_household_count_1991:{title:"Census Household Count (1991)",type:"integer",format:"int32",nullable:!0,description:"Number of households recorded at the 1991 census.",example:null},census_population_count:{title:"Census Population Count (2022)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded against this postcode at the 2022 census.",example:0},census_population_count_2011:{title:"Census Population Count (2011)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 2011 census.",example:18},census_population_count_2001:{title:"Census Population Count (2001)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 2001 census.",example:26},census_population_count_1991:{title:"Census Population Count (1991)",type:"integer",format:"int32",nullable:!0,description:"Resident population recorded at the 1991 census.",example:null},never_digitised:{title:"Never Digitised",type:"boolean",description:"True if the postcode has never been digitised (no grid reference established).",example:!1},codes:{title:"Codes",type:"object",description:"GSS / official codes for the corresponding name fields above.",properties:{council_area:{title:"Council Area Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 council area.",example:"S12000033"},electoral_ward:{title:"Electoral Ward Code (2022)",type:"string",nullable:!0,description:"9-character GSS code for the 2022 electoral ward.",example:"S13002841"},enterprise_region:{title:"Enterprise Region Code (2008)",type:"string",nullable:!0,description:"Code for the 2008 enterprise region.",example:"S99999999"},local_government_district:{title:"Local Government District Code (1995)",type:"string",nullable:!0,description:"Code for the 1995 local government district.",example:"S12000033"},local_government_district_1991:{title:"Local Government District Code (1991)",type:"string",nullable:!0,description:"Code for the 1991 local government district.",example:"S99999999"},uk_parliamentary_constituency:{title:"UK Parliamentary Constituency Code (2024)",type:"string",nullable:!0,description:"9-character GSS code for the 2024 UK Parliamentary constituency.",example:"S14000061"},scottish_parliamentary_region:{title:"Scottish Parliamentary Region Code (2025)",type:"string",nullable:!0,description:"9-character GSS code for the 2025 Scottish Parliamentary region (current designation).",example:"S17000026"},scottish_parliamentary_region_2021:{title:"Scottish Parliamentary Region Code (2021)",type:"string",nullable:!0,description:"9-character GSS code for the superseded 2021 Scottish Parliamentary region.",example:"S17000014"},scottish_parliamentary_constituency:{title:"Scottish Parliamentary Constituency Code (2025)",type:"string",nullable:!0,description:"9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation).",example:"S16000151",pattern:"^S[0-9]{8}$"},scottish_parliamentary_constituency_2021:{title:"Scottish Parliamentary Constituency Code (2021)",type:"string",nullable:!0,description:"9-character GSS code for the superseded 2021 Scottish Parliamentary constituency.",example:"S16000074",pattern:"^S[0-9]{8}$"},health_board_area:{title:"Health Board Area Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 NHS health board area.",example:"S08000020"},health_board_area_2006:{title:"Health Board Area Code (2006)",type:"string",nullable:!0,description:"GSS code for the 2006 health board area.",example:"S08000006"},health_board_area_1995:{title:"Health Board Area Code (1995)",type:"string",nullable:!0,description:"Code for the 1995 health board area.",example:"0"},integration_authority:{title:"Integration Authority Code (2019)",type:"string",nullable:!0,description:"9-character GSS code for the 2019 integration authority.",example:"S37000002"},data_zone:{title:"Data Zone Code (2022)",type:"string",nullable:!0,description:"GSS code for the 2022 Data Zone.",example:"S01013550"},data_zone_2011:{title:"Data Zone Code (2011)",type:"string",nullable:!0,description:"GSS code for the 2011 Data Zone.",example:"S01006571"},data_zone_2001:{title:"Data Zone Code (2001)",type:"string",nullable:!0,description:"Code for the 2001 Data Zone.",example:"S01000125"},intermediate_zone:{title:"Intermediate Zone Code (2022)",type:"string",nullable:!0,description:"GSS code for the 2022 Intermediate Zone.",example:"S02002527"},intermediate_zone_2011:{title:"Intermediate Zone Code (2011)",type:"string",nullable:!0,description:"GSS code for the 2011 Intermediate Zone.",example:"S02000007"},intermediate_zone_2001:{title:"Intermediate Zone Code (2001)",type:"string",nullable:!0,description:"Code for the 2001 Intermediate Zone.",example:"S02000017"},locality:{title:"Locality Code (2022)",type:"string",nullable:!0,description:"Code for the 2022 locality.",example:"S19000001"},settlement:{title:"Settlement Code (2022)",type:"string",nullable:!0,description:"Code for the 2022 settlement.",example:"S20000001"},civil_parish:{title:"Civil Parish Code (1930)",type:"string",nullable:!0,description:"Code for the 1930 civil parish.",example:"S07000001"},island:{title:"Island Code",type:"string",nullable:!0,description:"Island identifier code.",example:"S20000001"},national_park:{title:"National Park Code (2010)",type:"string",nullable:!0,description:"Code for the 2010 national park.",example:null},travel_to_work_area:{title:"Travel to Work Area Code (2011)",type:"string",nullable:!0,description:"Code for the 2011 Travel to Work Area.",example:"S22000047"},lau_level_1:{title:"LAU Level 1 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 LAU level 1 area.",example:"TLM50"},itl_level_2:{title:"ITL Level 2 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 ITL level 2 area.",example:"TLM5"},itl_level_3:{title:"ITL Level 3 Code (2025)",type:"string",nullable:!0,description:"Code for the 2025 ITL level 3 area.",example:"TLM50"},registration_district:{title:"Registration District Code (2007)",type:"string",nullable:!0,description:"Code for the 2007 registration district.",example:"RD20"},strategic_development_planning_area:{title:"SDPA Code (2013)",type:"string",nullable:!0,description:"Code for the 2013 strategic development planning area.",example:"SD01"},roa_community_planning_partnership:{title:"Community Planning Partnership Code (ROA 2006)",type:"string",nullable:!0,description:"Code for the 2006 community planning partnership.",example:"S12000033"},roa_local:{title:"ROA Local Code (2006)",type:"string",nullable:!0,description:"Code for the 2006 ROA local authority.",example:"S12000033"}}}},title:"ScottishPostcodes"}}}}}},404:{description:"Postcode not found"}}})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(C,{...e})}):C(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/4e6ae29d.268c2aa1.js b/build/assets/js/4e6ae29d.268c2aa1.js deleted file mode 100644 index b437c987f..000000000 --- a/build/assets/js/4e6ae29d.268c2aa1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[9667],{9342(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>y,default:()=>C,frontMatter:()=>f,metadata:()=>a,toc:()=>S});const a=JSON.parse('{"id":"api/lookup-postcode","title":"Lookup Postcode","description":"### Postcode Data","source":"@site/docs/api/lookup-postcode.api.mdx","sourceDirName":"api","slug":"/api/lookup-postcode","permalink":"/docs/api/lookup-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"lookup-postcode","title":"Lookup Postcode","description":"### Postcode Data","sidebar_label":"Lookup Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztPG1TGzmTf6Vr8gFzZxvbQBJ8X44QlmWXt8NQ3D4hBfJM29ZGI81KGogvRdXzI55feL/kqqUZe2b8AnZCru7q2ardxR5Nq7vV793Wt8CyoQm6n4ILZWyoIjTB53qgEtTMciWPo6AbnCj1JU3yBUE9iNCEmie0IOgGb968gfwhfGSW3cpb6d8BBte/Q5I/ZEPGpbFgRwjnZ73CW1xjaJUeQ+38rHfxcbMJVyMEjSZR0iBwAwwGqRBj+k6JB4xAY6h0BP/9938APqAeA4tiLrmxhPkD1gGFg8lEHYxllhvLQyaAyQhGyIQdwRDVULNkNAY7Yhbc1mBGPDEwUNqhOcGdG9BoUy0xAuZJsCoBgQ8ooD8Gbg2M0pjJhkYWsb5AkCzGOjxyO3LL8a+UPzCB0sJRrwdboAYDHnImwPEdYq610hhBKiP0u9+7J/eg+n9iaJvEWOKLYTGCGbGkjFZ/DPdbOcLmHmr9VHyBfwWDTIejTUe5dWx9QG2wMUQVqojLIaCMEsWlNU2431JpDsBDJt4bTJhmFuvAhkONQ2Yxgk/nfuXn2hvLhlvnqX1kOmoc0MubGX50PEoiaPUICWpQfpEjOeONOzfYgoRpbkawBaGSxnKbogzHwLRmYwMmjWN6TtgWz8UAl4ZH6HhzmeF7v9PauQc+KJ9gpNCAVBbwKzcWlCbm0ecHJnjUvJVBPSAqY7SoSSe+BXSCQTdIpqLPSeITZkczajARZquIcZrjA72g6dg1RkHX6hTrgbFjQTANjxNBC/BrIgh2d8CEoQXhCGMWdL8Fllu3dKHmFbf8K0U9duCYA9wNejftfejs7wdPT58JD69LhiB3Wi36XxlaLw1DNCaoB6GSFqWlJSxJBA+dLdj609C6b0swhMtsl6Ae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95hEw0pucbqmZKs26Z6vT8shn1mfvaVgY0IOtHz2ImC2qY3Te16Kqcb9M7bf55X9U/76v6f3NfVRaxWPxqtxLBuBspcNr0LXOf09uEyDt0J5flfK4HI0U/bPwUfPtGdaZrLZ6e6Gt/k1T30+epa3Q+NuKG/o4mN1Ut1LDaZXaZ0SYsuBVrLt7Zl0yOnVcWKX0K6sEXHBcv4Xqia55GyCLUDi//eN85isKLMzdXlSKMo8Or4OnpfwBu3i9B","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Postcodes","permalink":"/docs/api/postcodes"},"next":{"title":"Autocomplete Search a Postcode","permalink":"/docs/api/postcode-lookup"}}');var o=i(31325),n=i(31736),r=i(47812),l=i.n(r),s=i(38616),d=i.n(s),c=i(67994),p=i.n(c),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const f={id:"lookup-postcode",title:"Lookup Postcode",description:"### Postcode Data",sidebar_label:"Lookup Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJztPG1TGzmTf6Vr8gFzZxvbQBJ8X44QlmWXt8NQ3D4hBfJM29ZGI81KGogvRdXzI55feL/kqqUZe2b8AnZCru7q2ardxR5Nq7vV793Wt8CyoQm6n4ILZWyoIjTB53qgEtTMciWPo6AbnCj1JU3yBUE9iNCEmie0IOgGb968gfwhfGSW3cpb6d8BBte/Q5I/ZEPGpbFgRwjnZ73CW1xjaJUeQ+38rHfxcbMJVyMEjSZR0iBwAwwGqRBj+k6JB4xAY6h0BP/9938APqAeA4tiLrmxhPkD1gGFg8lEHYxllhvLQyaAyQhGyIQdwRDVULNkNAY7Yhbc1mBGPDEwUNqhOcGdG9BoUy0xAuZJsCoBgQ8ooD8Gbg2M0pjJhkYWsb5AkCzGOjxyO3LL8a+UPzCB0sJRrwdboAYDHnImwPEdYq610hhBKiP0u9+7J/eg+n9iaJvEWOKLYTGCGbGkjFZ/DPdbOcLmHmr9VHyBfwW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JyMnXdKJXtSRpRx+Z8kNW9C+BLzIxUaCY7LLwhxHUC/C06GgvTscJf00OYUKjub4SZFJWyVsOtfPMGDrMrYlynQ4jpZHXIJA2YM3d5SP77a3p32vvIr5dxsO7v72/lopPKHvtrbhxWIf2m3MDR4ZXD8OK8d5VfqGGa/qMXG+MmTrOrS2i+H+G+envJfU5Nfk+Joc+HLBxN7xoKVZz/bJxJmmDTKtGuBf7r1dWFa0mkJr/lwf/inbj1W+/87GKCmb/AyE3A0tUi1EBtuWXGX7JSh53sCwZ9FuXv0dc77mvqAQwo1XNU7+ZvO5kFpIuC/BVJMzjRIQuj8o2jvGk0oa+vonHOBvrxKhUSPYvoy5LATLoR2eUkrr05Xe+vzCGOM98owJhx0gOTJonS9t95hEw0pucbqmZKs26Z6vT8shn1mfvaVgY0IOtHz2ImC2qY3Te16Kqcb9M7bf55X9U/76v6f3NfVRaxWPxqtxLBuBspcNr0LXOf09uEyDt0J5flfK4HI0U/bPwUfPtGdaZrLZ6e6Gt/k1T30+epa3Q+NuKG/o4mN1Ut1LDaZXaZ0SYsuBVrLt7Zl0yOnVcWKX0K6sEXHBcv4Xqia55GyCLUDi//eN85isKLMzdXlSKMo8Or4OnpfwBu3i9B",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,g={},S=[{value:"Postcode Data",id:"postcode-data",level:3}];function b(e){const t={a:"a",code:"code",h3:"h3",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Lookup Postcode"}),"\n",(0,o.jsx)(l(),{method:"get",path:"/postcodes/{postcode}",context:"endpoint"}),"\n",(0,o.jsx)(t.h3,{id:"postcode-data",children:"Postcode Data"}),"\n",(0,o.jsxs)(t.p,{children:["Lookup a UK postcode against the ONS Postcode Directory (ONSPD). The response is a fully resolved record \u2014 every administrative, electoral, statistical and health geography that ONSPD ships for the postcode is returned at the top level by its human-readable name, with the equivalent GSS / official codes mirrored under the ",(0,o.jsx)(t.code,{children:"codes"})," object."]}),"\n",(0,o.jsxs)(t.p,{children:["The same shape is returned by ",(0,o.jsx)(t.code,{children:"/postcodes"})," (bulk + search) and the reverse-geocoding endpoints. ",(0,o.jsx)(t.code,{children:"/outcodes"})," returns a separate, aggregated ",(0,o.jsx)(t.a,{href:"#tag/Outward-Codes",children:"Outcode"})," shape \u2014 one row per outward code, with admin / parish / constituency arrays summarising the postcodes inside."]}),"\n",(0,o.jsxs)(t.p,{children:["Returns ",(0,o.jsx)(t.code,{children:"404"})," if the postcode does not exist or is not valid."]}),"\n",(0,o.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(d(),{parameters:[{name:"postcode",in:"path",description:"Postcode to retrieve",required:!0,style:"simple",explode:!1,schema:{title:"Postcode",description:"Postcode to query",example:"SW1A 2AA"}}]}),"\n",(0,o.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. May be empty for areas without county-level administration.",example:""},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function C(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/4e6ae29d.29c1a44f.js b/build/assets/js/4e6ae29d.29c1a44f.js new file mode 100644 index 000000000..e36c0e381 --- /dev/null +++ b/build/assets/js/4e6ae29d.29c1a44f.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[9667],{9342(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>f,default:()=>x,frontMatter:()=>y,metadata:()=>a,toc:()=>S});const a=JSON.parse('{"id":"api/lookup-postcode","title":"Lookup Postcode","description":"### Postcode Data","source":"@site/docs/api/lookup-postcode.api.mdx","sourceDirName":"api","slug":"/api/lookup-postcode","permalink":"/docs/api/lookup-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"lookup-postcode","title":"Lookup Postcode","description":"### Postcode Data","sidebar_label":"Lookup Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJztXOty27iSfpUu5oflPZIsyXYSa/+s43gcz/i2ll3enDhlQyQkYgwCHACUo025ah9in3CfZKsBkiIpSraUOHupk6oZSyQu3Q00+uuL8N0zZKy9/hfvQmrjy4Bq72vTkzFVxDApjgOv751I+ZDEWQOv6QVU+4rF2MDre2/evIHsJXwkhtyKW+H6AIHrPyDOXpIxYUIbMCGF87NBoRdT1DdSTaFxfja4+LjZhquQgqI6lkJTYBoIjBLOp/hM8gkNQFFfqgD+6z/+E+iEqimQIGKCaYOUT2gTKLdjEt4EbYhh2jCfcCAigJASbkIYUzlWJA6nYEJiwE4NOmSxhpFUlsycdqZBUZMoQQMgjgUjY+B0QjkMp8CMhjCJiGgpSgIy5BQEiWgTHpkJbXP6V8ImhFNh4GgwgC2QoxHzGeFg5Q4RU0oqGkAiAupmv7dv7kEO/6S+aaNgUS6aRBR0SOIyWcMp3G9lBOt7aAwT/gB/A02J8sNNy7mxYp1QpWlrTKUvAybGQEUQSyaMbsP9lkyyAdzIKHtNY6KIoU0g47GiY2JoAF/OXcuvjTeGjLfOE/NIVNA6wM6bKX24PFJQUPIRYqpAukaW5VQ2dt1gC2KimA5hC3wptGEmocKfAlGKTDXoJIrwPVJbXBcNTGgWUCuby5Te+53Ozj2wUXkFA0k1CGmAfmPagFQoPPw+IZwF7VvhNT3kMqKGKtSJ7x6uoNf34tnWZ7jjY2LCOTXIN7ORKDjF6AQ7KFx2RQOvb1RCm542U45jahbFHBvQbzHHsfsjwjU28EMaEa//3TPM2KYLNa845V8JVVM7HLED973BTXcfevv73tPTV6TD6ZLGkXudDv4pjzZIfJ9q7TU9XwpDhcEmJI458+1ZsPWnxnbfl1AIl+ksXtMz0xhfua1bEsQXD/Ux0fahTrjBIydWeOgY5ghMG+AUbhgmDB1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OB9cZTfH6Lb76raNthW86R09+HsJCvfVa3ruM26yC3k0fj8kfji7VMuXUfaDfyKwClDJWNkygk9XVxc2rZPo7H4Od1cBSuv3wfnZRU6Zu6nLVhTjHTqYhO7YZtrdJtSEnfQBgSEJsn74eMc+xjzKCF09y/Vu1tvuWaB4I5a7C2yOJlxkrmU2cZAl3nL+hjKYZmLAnx1jINGJCB+WNkye0UmzLDZFPGvv7oZCiROXKKARYagHOoljqcy/sIAS3pqtry/byYNNdFjVGbhmc+pT220rHdTD0w/fRUQU1DC9WG3RnVDfZ5c3/eNitn9czPb/5mK2FLEY+s1sxZwwW5Zhtel7aj5n12ahdejn1xx9bXqhxB+KfvG+f8c407XiT0/42F2Z1v/ydWYarY0NmMbPQX4l20INa1ymWdlNWHD9Wy3d6UMiptYq8wS/eU3vgU6Lt8094X1mISUBVZYu93rfGopCx7kr2koI4+jwynt6+m+Rkim/","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Postcodes","permalink":"/docs/api/postcodes"},"next":{"title":"Autocomplete Search a Postcode","permalink":"/docs/api/postcode-lookup"}}');var o=i(31325),n=i(31736),r=i(47812),s=i.n(r),l=i(38616),c=i.n(l),d=i(67994),p=i.n(d),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const y={id:"lookup-postcode",title:"Lookup Postcode",description:"### Postcode Data",sidebar_label:"Lookup Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJztXOty27iSfpUu5oflPZIsyXYSa/+s43gcz/i2ll3enDhlQyQkYgwCHACUo025ah9in3CfZKsBkiIpSraUOHupk6oZSyQu3Q00+uuL8N0zZKy9/hfvQmrjy4Bq72vTkzFVxDApjgOv751I+ZDEWQOv6QVU+4rF2MDre2/evIHsJXwkhtyKW+H6AIHrPyDOXpIxYUIbMCGF87NBoRdT1DdSTaFxfja4+LjZhquQgqI6lkJTYBoIjBLOp/hM8gkNQFFfqgD+6z/+E+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ydWYarY0NmMbPQX4l20INa1ymWdlNWHD9Wy3d6UMiptYq8wS/eU3vgU6Lt8094X1mISUBVZYu93rfGopCx7kr2koI4+jwynt6+m+Rkim/",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},f=void 0,g={},S=[{value:"Postcode Data",id:"postcode-data",level:3}];function b(e){const t={a:"a",code:"code",h3:"h3",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Lookup Postcode"}),"\n",(0,o.jsx)(s(),{method:"get",path:"/postcodes/{postcode}",context:"endpoint"}),"\n",(0,o.jsx)(t.h3,{id:"postcode-data",children:"Postcode Data"}),"\n",(0,o.jsxs)(t.p,{children:["Lookup a UK postcode against the ONS Postcode Directory (ONSPD). The response is a fully resolved record \u2014 every administrative, electoral, statistical and health geography that ONSPD ships for the postcode is returned at the top level by its human-readable name, with the equivalent GSS / official codes mirrored under the ",(0,o.jsx)(t.code,{children:"codes"})," object."]}),"\n",(0,o.jsxs)(t.p,{children:["The same shape is returned by ",(0,o.jsx)(t.code,{children:"/postcodes"})," (bulk + search) and the reverse-geocoding endpoints. ",(0,o.jsx)(t.code,{children:"/outcodes"})," returns a separate, aggregated ",(0,o.jsx)(t.a,{href:"#tag/Outward-Codes",children:"Outcode"})," shape \u2014 one row per outward code, with admin / parish / constituency arrays summarising the postcodes inside."]}),"\n",(0,o.jsxs)(t.p,{children:["Returns ",(0,o.jsx)(t.code,{children:"404"})," if the postcode does not exist or is not valid."]}),"\n",(0,o.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(c(),{parameters:[{name:"postcode",in:"path",description:"Postcode to retrieve",required:!0,style:"simple",explode:!1,schema:{title:"Postcode",description:"Postcode to query",example:"SW1A 2AA"}}]}),"\n",(0,o.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","pfa","date_of_introduction","date_of_termination","index_of_multiple_deprivation","parliamentary_constituency_2024","senedd_constituency","senedd_constituency_no","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).",example:null},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:"Caerdydd Penarth"},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:14},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",required:["admin_district","admin_county","admin_ward","parish","ccg","ccg_id","ced","nuts","lau2","lsoa","msoa","pfa","parliamentary_constituency","parliamentary_constituency_2024","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2"],properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/6353b66b.663d6c32.js b/build/assets/js/6353b66b.663d6c32.js deleted file mode 100644 index 7bfcce9db..000000000 --- a/build/assets/js/6353b66b.663d6c32.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[1002],{61843(e,n,d){d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>a,frontMatter:()=>i,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"postcode/schema","title":"Postcode Response Schema","description":"The Postcode schema represents all geographical and administrative information associated with a UK postcode. This data is returned when using the postcode lookup endpoints and forms the core of the Postcodes.io API response structure.","source":"@site/docs/postcode/schema.mdx","sourceDirName":"postcode","slug":"/postcode/schema","permalink":"/docs/postcode/schema","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Postcode Schema","title":"Postcode Response Schema"},"sidebar":"docsSidebar","previous":{"title":"Overview","permalink":"/docs/overview"},"next":{"title":"Lookup","permalink":"/docs/postcode/lookup"}}');var r=d(31325),t=d(31736);const i={sidebar_label:"Postcode Schema",title:"Postcode Response Schema"},c=void 0,l={},o=[{value:"Example",id:"example",level:2},{value:"Reference",id:"reference",level:2},{value:"Positional Quality",id:"positional-quality",level:2}];function h(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"The Postcode schema represents all geographical and administrative information associated with a UK postcode. This data is returned when using the postcode lookup endpoints and forms the core of the Postcodes.io API response structure."}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "postcode": "SW1A 1AA",\n "quality": 1,\n "eastings": 529090,\n "northings": 179645,\n "country": "England",\n "nhs_ha": "London",\n "longitude": -0.141563,\n "latitude": 51.50101,\n "european_electoral_region": "London",\n "primary_care_trust": "Westminster",\n "region": "London",\n "lsoa": "Westminster 018C",\n "msoa": "Westminster 018",\n "incode": "1AA",\n "outcode": "SW1A",\n "parliamentary_constituency": "Cities of London and Westminster",\n "parliamentary_constituency_2024": "Cities of London and Westminster",\n "senedd_constituency": null,\n "senedd_constituency_no": null,\n "admin_district": "Westminster",\n "parish": "Westminster, unparished area",\n "admin_county": "(pseudo) England (UA/MD/LB)",\n "date_of_introduction": "198001",\n "date_of_termination": null,\n "index_of_multiple_deprivation": 24862,\n "admin_ward": "St James\'s",\n "ced": null,\n "ccg": "NHS North West London",\n "nuts": "Westminster",\n "pfa": "Metropolitan Police",\n "nhs_region": "London",\n "ttwa": "London",\n "national_park": "England (non-National Park)",\n "bua": "City of Westminster",\n "icb": "NHS North West London Integrated Care Board",\n "cancer_alliance": "West London",\n "lsoa11": "Westminster 018C",\n "msoa11": "Westminster 018",\n "lsoa21": "Westminster 018C",\n "msoa21": "Westminster 018",\n "oa21": "E00023938",\n "ruc11": "(England/Wales) Urban major conurbation",\n "ruc21": "Urban: Nearer to a major town or city",\n "lep1": "London",\n "lep2": null,\n "codes": {\n "admin_district": "E09000033",\n "admin_county": "E99999999",\n "admin_ward": "E05013806",\n "parish": "E43000236",\n "parliamentary_constituency": "E14001172",\n "parliamentary_constituency_2024": "E14001172",\n "ccg": "E38000256",\n "ccg_id": "W2U3Z",\n "ced": "E99999999",\n "nuts": "TLI35",\n "lsoa": "E01004736",\n "msoa": "E02000977",\n "lau2": "E09000033",\n "pfa": "E23000001",\n "nhs_region": "E40000003",\n "ttwa": "E30000234",\n "national_park": "E65000001",\n "bua": "E63012036",\n "icb": "E54000027",\n "cancer_alliance": "E56000021",\n "lsoa11": "E01004736",\n "msoa11": "E02000977",\n "lsoa21": "E01004736",\n "msoa21": "E02000977",\n "oa21": "E00023938",\n "ruc11": "A1",\n "ruc21": "UN1",\n "lep1": "E37000051",\n "lep2": null\n }\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"reference",children:"Reference"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Field"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"}),(0,r.jsx)(n.th,{children:"Example"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"postcode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code. Updated monthly from Royal Mail."}),(0,r.jsx)(n.td,{children:'"SW1A 2AA"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"outcode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district."}),(0,r.jsx)(n.td,{children:'"SW1A"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"incode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area."}),(0,r.jsx)(n.td,{children:'"1AA"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"quality"})}),(0,r.jsx)(n.td,{children:"integer"}),(0,r.jsx)(n.td,{children:"Indicates accuracy of the grid reference location (1-9 scale, 1 being most accurate)."}),(0,r.jsx)(n.td,{children:"1"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"eastings"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"Ordnance Survey grid reference easting (X-coordinate) with 1-meter resolution. May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"530047"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"northings"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"Ordnance Survey grid reference northing (Y-coordinate) with 1-meter resolution. May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"179951"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"country"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man)."}),(0,r.jsx)(n.td,{children:'"England"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nhs_ha"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS health authority area for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_county"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The administrative county for this postcode. May be empty for areas without county-level administration."}),(0,r.jsx)(n.td,{children:'""'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_district"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The administrative district or unitary authority for this postcode."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_ward"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The electoral/administrative ward for this postcode."}),(0,r.jsx)(n.td,{children:'"St. James\'s"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"longitude"})}),(0,r.jsx)(n.td,{children:"number | null"}),(0,r.jsx)(n.td,{children:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"-0.12767"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"latitude"})}),(0,r.jsx)(n.td,{children:"number | null"}),(0,r.jsx)(n.td,{children:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"51.503541"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parliamentary_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The UK Parliamentary constituency for this postcode."}),(0,r.jsx)(n.td,{children:'"Cities of London and Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"european_electoral_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The European Electoral Region for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"primary_care_trust"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The regional designation for this postcode (formerly Government Office Regions or GORs)."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parish"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The civil parish (England) or community (Wales) for this postcode."}),(0,r.jsx)(n.td,{children:'"Westminster, unparished area"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ced"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ccg"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"NHS Clinical Commissioning Group responsible for planning healthcare services in England."}),(0,r.jsx)(n.td,{children:'"NHS North West London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nuts"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"International Territorial Levels (ITL) code for statistical geography (formerly NUTS - Nomenclature of Units for Territorial Statistics)."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes"})}),(0,r.jsx)(n.td,{children:"object"}),(0,r.jsx)(n.td,{children:"Standard 9-character codes (ONS/GSS) for various administrative boundaries. Useful for data linking with official statistics."}),(0,r.jsx)(n.td,{children:"-"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_district"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative district."}),(0,r.jsx)(n.td,{children:'"E09000033"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_county"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative county."}),(0,r.jsx)(n.td,{children:'"E99999999"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_ward"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative ward."}),(0,r.jsx)(n.td,{children:'"E05013806"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parish"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this parish."}),(0,r.jsx)(n.td,{children:'"E43000236"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsxs)(n.td,{children:["Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for ",(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency_2024"}),"."]}),(0,r.jsx)(n.td,{children:'"E14000639"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ccg"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Clinical Commissioning Group."}),(0,r.jsx)(n.td,{children:'"E38000256"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ccg_id"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Short code identifier for this Clinical Commissioning Group."}),(0,r.jsx)(n.td,{children:'"W2U3Z"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ced"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this County Electoral District."}),(0,r.jsx)(n.td,{children:'"E99999999"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.nuts"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official code for this International Territorial Level area."}),(0,r.jsx)(n.td,{children:'"TLI32"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lau2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Local Administrative Unit level 2 code for this area."}),(0,r.jsx)(n.td,{children:'"E09000033"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census LSOA."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census MSOA."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.pfa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Police Force Area."}),(0,r.jsx)(n.td,{children:'"E23000001"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"pfa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The police force area for this postcode."}),(0,r.jsx)(n.td,{children:'"Metropolitan Police"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"date_of_introduction"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The date the postcode was introduced in YYYYMM format."}),(0,r.jsx)(n.td,{children:'"198001"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"date_of_termination"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsxs)(n.td,{children:["The date the postcode was terminated in YYYYMM format. ",(0,r.jsx)(n.code,{children:"null"})," for live postcodes."]}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"index_of_multiple_deprivation"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries."}),(0,r.jsx)(n.td,{children:"14843"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parliamentary_constituency_2024"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries."}),(0,r.jsx)(n.td,{children:'"Cities of London and Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"senedd_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere."}),(0,r.jsx)(n.td,{children:'"Caerdydd Penarth"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"senedd_constituency_no"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere."}),(0,r.jsx)(n.td,{children:"14"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nhs_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS England Region for this postcode. Only applicable to English postcodes."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ttwa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"national_park"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The National Park this postcode falls within, if any."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"bua"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Built-up Area (2022) for this postcode."}),(0,r.jsx)(n.td,{children:'"Greater London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"icb"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS Integrated Care Board responsible for healthcare planning in this area."}),(0,r.jsx)(n.td,{children:'"NHS North West London ICB"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"cancer_alliance"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Cancer Alliance for this postcode."}),(0,r.jsx)(n.td,{children:'"RM Partners (West London)"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census LSOA code. Alias for the 'lsoa' field."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census MSOA code. Alias for the 'msoa' field."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census MSOA code. In Scotland this is the Intermediate Zone."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"oa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Output Area code - the smallest census geography."}),(0,r.jsx)(n.td,{children:'"E00004185"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ruc11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The 2011 Census Rural-Urban Classification for this postcode."}),(0,r.jsx)(n.td,{children:'"Urban major conurbation"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ruc21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The 2021 Census Rural-Urban Classification for this postcode."}),(0,r.jsx)(n.td,{children:'"Urban major conurbation"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lep1"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The primary Local Enterprise Partnership for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lep2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.nhs_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this NHS England Region."}),(0,r.jsx)(n.td,{children:'"E40000003"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ttwa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Travel to Work Area code."}),(0,r.jsx)(n.td,{children:'"E30000234"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.national_park"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this National Park."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.bua"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Built-up Area (2022) code."}),(0,r.jsx)(n.td,{children:'"E34004786"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.icb"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Integrated Care Board."}),(0,r.jsx)(n.td,{children:'"E54000027"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.cancer_alliance"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Cancer Alliance."}),(0,r.jsx)(n.td,{children:'"E56000009"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census LSOA."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census MSOA."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.oa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Output Area code."}),(0,r.jsx)(n.td,{children:'"E00004185"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ruc11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census Rural-Urban Classification code."}),(0,r.jsx)(n.td,{children:'"A1"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ruc21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Rural-Urban Classification code."}),(0,r.jsx)(n.td,{children:'"A1"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lep1"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for the primary Local Enterprise Partnership."}),(0,r.jsx)(n.td,{children:'"E37000051"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lep2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for the secondary Local Enterprise Partnership."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency_2024"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries."}),(0,r.jsx)(n.td,{children:'"E14000639"'})]})]})]}),"\n",(0,r.jsx)(n.h2,{id:"positional-quality",children:"Positional Quality"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Quality Value"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"1"}),(0,r.jsx)(n.td,{children:"Within the actual building (most accurate)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"2"}),(0,r.jsx)(n.td,{children:"Same as 1, but verified by Landline maps (Scotland only)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"3"}),(0,r.jsx)(n.td,{children:"Approximate location within 50m"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"4"}),(0,r.jsx)(n.td,{children:"Postcode unit mean (averaged from addresses with same postcode)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"5"}),(0,r.jsx)(n.td,{children:"Estimated by ONS using surrounding postcodes"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"6"}),(0,r.jsx)(n.td,{children:"Postcode sector mean (mainly PO Boxes)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"8"}),(0,r.jsx)(n.td,{children:"Historical postcode (pre-Gridlink\xae)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"9"}),(0,r.jsx)(n.td,{children:"No grid reference available"})]})]})]})]})}function a(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},31736(e,n,d){d.d(n,{R:()=>i,x:()=>c});var s=d(20489);const r={},t=s.createContext(r);function i(e){const n=s.useContext(t);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/build/assets/js/6353b66b.ff06497d.js b/build/assets/js/6353b66b.ff06497d.js new file mode 100644 index 000000000..3105bb972 --- /dev/null +++ b/build/assets/js/6353b66b.ff06497d.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[1002],{61843(e,n,d){d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>a,frontMatter:()=>i,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"postcode/schema","title":"Postcode Response Schema","description":"The Postcode schema represents all geographical and administrative information associated with a UK postcode. This data is returned when using the postcode lookup endpoints and forms the core of the Postcodes.io API response structure.","source":"@site/docs/postcode/schema.mdx","sourceDirName":"postcode","slug":"/postcode/schema","permalink":"/docs/postcode/schema","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Postcode Schema","title":"Postcode Response Schema"},"sidebar":"docsSidebar","previous":{"title":"Overview","permalink":"/docs/overview"},"next":{"title":"Lookup","permalink":"/docs/postcode/lookup"}}');var r=d(31325),t=d(31736);const i={sidebar_label:"Postcode Schema",title:"Postcode Response Schema"},c=void 0,l={},o=[{value:"Example",id:"example",level:2},{value:"Reference",id:"reference",level:2},{value:"Positional Quality",id:"positional-quality",level:2}];function h(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"The Postcode schema represents all geographical and administrative information associated with a UK postcode. This data is returned when using the postcode lookup endpoints and forms the core of the Postcodes.io API response structure."}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "postcode": "SW1A 1AA",\n "quality": 1,\n "eastings": 529090,\n "northings": 179645,\n "country": "England",\n "nhs_ha": "London",\n "longitude": -0.141563,\n "latitude": 51.50101,\n "european_electoral_region": "London",\n "primary_care_trust": "Westminster",\n "region": "London",\n "lsoa": "Westminster 018C",\n "msoa": "Westminster 018",\n "incode": "1AA",\n "outcode": "SW1A",\n "parliamentary_constituency": "Cities of London and Westminster",\n "parliamentary_constituency_2024": "Cities of London and Westminster",\n "senedd_constituency": null,\n "senedd_constituency_no": null,\n "admin_district": "Westminster",\n "parish": "Westminster, unparished area",\n "admin_county": "(pseudo) England (UA/MD/LB)",\n "date_of_introduction": "198001",\n "date_of_termination": null,\n "index_of_multiple_deprivation": 24862,\n "admin_ward": "St James\'s",\n "ced": null,\n "ccg": "NHS North West London",\n "nuts": "Westminster",\n "pfa": "Metropolitan Police",\n "nhs_region": "London",\n "ttwa": "London",\n "national_park": "England (non-National Park)",\n "bua": "City of Westminster",\n "icb": "NHS North West London Integrated Care Board",\n "cancer_alliance": "West London",\n "lsoa11": "Westminster 018C",\n "msoa11": "Westminster 018",\n "lsoa21": "Westminster 018C",\n "msoa21": "Westminster 018",\n "oa21": "E00023938",\n "ruc11": "(England/Wales) Urban major conurbation",\n "ruc21": "Urban: Nearer to a major town or city",\n "lep1": "London",\n "lep2": null,\n "codes": {\n "admin_district": "E09000033",\n "admin_county": "E99999999",\n "admin_ward": "E05013806",\n "parish": "E43000236",\n "parliamentary_constituency": "E14001172",\n "parliamentary_constituency_2024": "E14001172",\n "ccg": "E38000256",\n "ccg_id": "W2U3Z",\n "ced": "E99999999",\n "nuts": "TLI35",\n "lsoa": "E01004736",\n "msoa": "E02000977",\n "lau2": "E09000033",\n "pfa": "E23000001",\n "nhs_region": "E40000003",\n "ttwa": "E30000234",\n "national_park": "E65000001",\n "bua": "E63012036",\n "icb": "E54000027",\n "cancer_alliance": "E56000021",\n "lsoa11": "E01004736",\n "msoa11": "E02000977",\n "lsoa21": "E01004736",\n "msoa21": "E02000977",\n "oa21": "E00023938",\n "ruc11": "A1",\n "ruc21": "UN1",\n "lep1": "E37000051",\n "lep2": null\n }\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"reference",children:"Reference"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Field"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"}),(0,r.jsx)(n.th,{children:"Example"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"postcode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code. Updated monthly from Royal Mail."}),(0,r.jsx)(n.td,{children:'"SW1A 2AA"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"outcode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district."}),(0,r.jsx)(n.td,{children:'"SW1A"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"incode"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area."}),(0,r.jsx)(n.td,{children:'"1AA"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"quality"})}),(0,r.jsx)(n.td,{children:"integer"}),(0,r.jsx)(n.td,{children:"Indicates accuracy of the grid reference location (1-9 scale, 1 being most accurate)."}),(0,r.jsx)(n.td,{children:"1"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"eastings"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"Ordnance Survey grid reference easting (X-coordinate) with 1-meter resolution. May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"530047"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"northings"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"Ordnance Survey grid reference northing (Y-coordinate) with 1-meter resolution. May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"179951"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"country"})}),(0,r.jsx)(n.td,{children:"string"}),(0,r.jsx)(n.td,{children:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man)."}),(0,r.jsx)(n.td,{children:'"England"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nhs_ha"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS health authority area for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_county"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsxs)(n.td,{children:["The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as ",(0,r.jsx)(n.code,{children:"E99999999"}),", surfaced under ",(0,r.jsx)(n.code,{children:"codes.admin_county"}),")."]}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_district"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The administrative district or unitary authority for this postcode."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"admin_ward"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The electoral/administrative ward for this postcode."}),(0,r.jsx)(n.td,{children:'"St. James\'s"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"longitude"})}),(0,r.jsx)(n.td,{children:"number | null"}),(0,r.jsx)(n.td,{children:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"-0.12767"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"latitude"})}),(0,r.jsx)(n.td,{children:"number | null"}),(0,r.jsx)(n.td,{children:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable."}),(0,r.jsx)(n.td,{children:"51.503541"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parliamentary_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The UK Parliamentary constituency for this postcode."}),(0,r.jsx)(n.td,{children:'"Cities of London and Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"european_electoral_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The European Electoral Region for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"primary_care_trust"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The regional designation for this postcode (formerly Government Office Regions or GORs)."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parish"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The civil parish (England) or community (Wales) for this postcode."}),(0,r.jsx)(n.td,{children:'"Westminster, unparished area"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ced"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ccg"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"NHS Clinical Commissioning Group responsible for planning healthcare services in England."}),(0,r.jsx)(n.td,{children:'"NHS North West London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nuts"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"International Territorial Levels (ITL) code for statistical geography (formerly NUTS - Nomenclature of Units for Territorial Statistics)."}),(0,r.jsx)(n.td,{children:'"Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes"})}),(0,r.jsx)(n.td,{children:"object"}),(0,r.jsx)(n.td,{children:"Standard 9-character codes (ONS/GSS) for various administrative boundaries. Useful for data linking with official statistics."}),(0,r.jsx)(n.td,{children:"-"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_district"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative district."}),(0,r.jsx)(n.td,{children:'"E09000033"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_county"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative county."}),(0,r.jsx)(n.td,{children:'"E99999999"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.admin_ward"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this administrative ward."}),(0,r.jsx)(n.td,{children:'"E05013806"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parish"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this parish."}),(0,r.jsx)(n.td,{children:'"E43000236"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsxs)(n.td,{children:["Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for ",(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency_2024"}),"."]}),(0,r.jsx)(n.td,{children:'"E14000639"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ccg"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Clinical Commissioning Group."}),(0,r.jsx)(n.td,{children:'"E38000256"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ccg_id"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Short code identifier for this Clinical Commissioning Group."}),(0,r.jsx)(n.td,{children:'"W2U3Z"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ced"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this County Electoral District."}),(0,r.jsx)(n.td,{children:'"E99999999"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.nuts"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official code for this International Territorial Level area."}),(0,r.jsx)(n.td,{children:'"TLI32"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lau2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Local Administrative Unit level 2 code for this area."}),(0,r.jsx)(n.td,{children:'"E09000033"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census LSOA."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census MSOA."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.pfa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Police Force Area."}),(0,r.jsx)(n.td,{children:'"E23000001"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"pfa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The police force area for this postcode."}),(0,r.jsx)(n.td,{children:'"Metropolitan Police"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"date_of_introduction"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The date the postcode was introduced in YYYYMM format."}),(0,r.jsx)(n.td,{children:'"198001"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"date_of_termination"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsxs)(n.td,{children:["The date the postcode was terminated in YYYYMM format. ",(0,r.jsx)(n.code,{children:"null"})," for live postcodes."]}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"index_of_multiple_deprivation"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries."}),(0,r.jsx)(n.td,{children:"14843"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"parliamentary_constituency_2024"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries."}),(0,r.jsx)(n.td,{children:'"Cities of London and Westminster"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"senedd_constituency"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere."}),(0,r.jsx)(n.td,{children:'"Caerdydd Penarth"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"senedd_constituency_no"})}),(0,r.jsx)(n.td,{children:"integer | null"}),(0,r.jsx)(n.td,{children:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere."}),(0,r.jsx)(n.td,{children:"14"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"nhs_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS England Region for this postcode. Only applicable to English postcodes."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ttwa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"national_park"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The National Park this postcode falls within, if any."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"bua"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Built-up Area (2022) for this postcode."}),(0,r.jsx)(n.td,{children:'"Greater London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"icb"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The NHS Integrated Care Board responsible for healthcare planning in this area."}),(0,r.jsx)(n.td,{children:'"NHS North West London ICB"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"cancer_alliance"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The Cancer Alliance for this postcode."}),(0,r.jsx)(n.td,{children:'"RM Partners (West London)"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census LSOA code. Alias for the 'lsoa' field."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census MSOA code. Alias for the 'msoa' field."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lsoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area."}),(0,r.jsx)(n.td,{children:'"Westminster 018C"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"msoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census MSOA code. In Scotland this is the Intermediate Zone."}),(0,r.jsx)(n.td,{children:'"Westminster 018"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"oa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Output Area code - the smallest census geography."}),(0,r.jsx)(n.td,{children:'"E00004185"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ruc11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The 2011 Census Rural-Urban Classification for this postcode."}),(0,r.jsx)(n.td,{children:'"Urban major conurbation"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"ruc21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The 2021 Census Rural-Urban Classification for this postcode."}),(0,r.jsx)(n.td,{children:'"Urban major conurbation"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lep1"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The primary Local Enterprise Partnership for this postcode."}),(0,r.jsx)(n.td,{children:'"London"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"lep2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.nhs_region"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this NHS England Region."}),(0,r.jsx)(n.td,{children:'"E40000003"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ttwa"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Travel to Work Area code."}),(0,r.jsx)(n.td,{children:'"E30000234"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.national_park"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this National Park."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.bua"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Built-up Area (2022) code."}),(0,r.jsx)(n.td,{children:'"E34004786"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.icb"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Integrated Care Board."}),(0,r.jsx)(n.td,{children:'"E54000027"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.cancer_alliance"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Cancer Alliance."}),(0,r.jsx)(n.td,{children:'"E56000009"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lsoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census LSOA."}),(0,r.jsx)(n.td,{children:'"E01004736"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.msoa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this 2021 Census MSOA."}),(0,r.jsx)(n.td,{children:'"E02000977"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.oa21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Output Area code."}),(0,r.jsx)(n.td,{children:'"E00004185"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ruc11"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2011 Census Rural-Urban Classification code."}),(0,r.jsx)(n.td,{children:'"A1"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.ruc21"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"2021 Census Rural-Urban Classification code."}),(0,r.jsx)(n.td,{children:'"A1"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lep1"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for the primary Local Enterprise Partnership."}),(0,r.jsx)(n.td,{children:'"E37000051"'})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.lep2"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for the secondary Local Enterprise Partnership."}),(0,r.jsx)(n.td,{children:"null"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"codes.parliamentary_constituency_2024"})}),(0,r.jsx)(n.td,{children:"string | null"}),(0,r.jsx)(n.td,{children:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries."}),(0,r.jsx)(n.td,{children:'"E14000639"'})]})]})]}),"\n",(0,r.jsx)(n.h2,{id:"positional-quality",children:"Positional Quality"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Quality Value"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"1"}),(0,r.jsx)(n.td,{children:"Within the actual building (most accurate)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"2"}),(0,r.jsx)(n.td,{children:"Same as 1, but verified by Landline maps (Scotland only)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"3"}),(0,r.jsx)(n.td,{children:"Approximate location within 50m"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"4"}),(0,r.jsx)(n.td,{children:"Postcode unit mean (averaged from addresses with same postcode)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"5"}),(0,r.jsx)(n.td,{children:"Estimated by ONS using surrounding postcodes"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"6"}),(0,r.jsx)(n.td,{children:"Postcode sector mean (mainly PO Boxes)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"8"}),(0,r.jsx)(n.td,{children:"Historical postcode (pre-Gridlink\xae)"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:"9"}),(0,r.jsx)(n.td,{children:"No grid reference available"})]})]})]})]})}function a(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},31736(e,n,d){d.d(n,{R:()=>i,x:()=>c});var s=d(20489);const r={},t=s.createContext(r);function i(e){const n=s.useContext(t);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/build/assets/js/735c778a.9ec0fb88.js b/build/assets/js/735c778a.9ec0fb88.js deleted file mode 100644 index 02b5ec133..000000000 --- a/build/assets/js/735c778a.9ec0fb88.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[7110],{54192(e,t,i){i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>f,default:()=>C,frontMatter:()=>y,metadata:()=>a,toc:()=>b});const a=JSON.parse('{"id":"api/random-postcode","title":"Get a Random Postcode","description":"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.","source":"@site/docs/api/random-postcode.api.mdx","sourceDirName":"api","slug":"/api/random-postcode","permalink":"/docs/api/random-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"random-postcode","title":"Get a Random Postcode","description":"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.","sidebar_label":"Get a Random Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJzVPNty27iSv9LF82B7S5Yl2U5i7cs6jsejGd/WkssnJ055YLIlYQICHAC0o5Ny1X7EfuF+yakGSIqk6IuUOLs7VTNjkUCju9HoO/EtsGxigv6n4FwZG6oITfC5FagENbNcyUEU9APNZKTifEDQCiI0oeYJDQj6wQXaVEsDDPxAMQODAkOLESTZJGBCyQncczuFUMWJxilKw+8QJqgmmiVTHraARTGX3Fha+w5bwGQExjLLjeUh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nMdrD/++ONaPrZT2etrSXUqh1VIX5MbODocOQzPz4aj/CoN0/Y/vcgY12uaXVpCnf0If9TvLfkjpya/ocTQ70MWTvPGHYIQ5x+MM0m9a1ol2hW/fx2Nzl0xIjX5/Q7+W3fi1m/Ds9PzAjN3YwK63le6VIRKpx03zPjrVVqwkz1gcMuifB493nGPKfs/piDPUb2bz3YyC6i10m6FRZxok4VR+cJRXi4q6LtV0SxnA322SilEzyJ6WBGYog6RXUviCpvz8W33JTpxnPkSAcaM0zkwaZIobf+DR8jE5nx/Q9VOqcstOzpDP2zh+DRO28qABqT36F3MZOkYHiF9wnDhr+B57Nahb/M7bf7PXUCUWR2LX+1WIhh3ZWHHl2+ZEvyU3akUtIK5GvzcCqaKvkz7FHz7RomCSy0eHuixv6yIlGPEDem3qLhK6FGm/KirjBqJ+YKzypVKrvfbffb7ea6Eg/4nur9niixC7bD30/adHijNWriSqGI8jg5HwcPDvwBAGaPL","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Find the Nearest Postcodes","permalink":"/docs/api/nearest-postcode"},"next":{"title":"Terminated Postcodes","permalink":"/docs/api/terminated-postcodes"}}');var n=i(31325),o=i(31736),r=i(47812),l=i.n(r),s=i(38616),c=i.n(s),d=i(67994),p=i.n(d),u=i(54768),m=i.n(u),h=(i(24909),i(96847),i(78121));const y={id:"random-postcode",title:"Get a Random Postcode",description:"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.",sidebar_label:"Get a Random Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJzVPNty27iSv9LF82B7S5Yl2U5i7cs6jsejGd/WkssnJ055YLIlYQICHAC0o5Ny1X7EfuF+yakGSIqk6IuUOLs7VTNjkUCju9HoO/EtsGxigv6n4FwZG6oITfC5FagENbNcyUEU9APNZKTifEDQCiI0oeYJDQj6wQXaVEsDDPxAMQODAkOLESTZJGBCyQncczuFUMWJxilKw+8QJ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YxcH7yrcQgx76kOmaTWcuauDcm/vKa586oHZnMdrD/++ONaPrZT2etrSXUqh1VIX5MbODocOQzPz4aj/CoN0/Y/vcgY12uaXVpCnf0If9TvLfkjpya/ocTQ70MWTvPGHYIQ5x+MM0m9a1ol2hW/fx2Nzl0xIjX5/Q7+W3fi1m/Ds9PzAjN3YwK63le6VIRKpx03zPjrVVqwkz1gcMuifB493nGPKfs/piDPUb2bz3YyC6i10m6FRZxok4VR+cJRXi4q6LtV0SxnA322SilEzyJ6WBGYog6RXUviCpvz8W33JTpxnPkSAcaM0zkwaZIobf+DR8jE5nx/Q9VOqcstOzpDP2zh+DRO28qABqT36F3MZOkYHiF9wnDhr+B57Nahb/M7bf7PXUCUWR2LX+1WIhh3ZWHHl2+ZEvyU3akUtIK5GvzcCqaKvkz7FHz7RomCSy0eHuixv6yIlGPEDem3qLhK6FGm/KirjBqJ+YKzypVKrvfbffb7ea6Eg/4nur9niixC7bD30/adHijNWriSqGI8jg5HwcPDvwBAGaPL",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},f=void 0,g={},b=[];function S(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Get a Random Postcode"}),"\n",(0,n.jsx)(l(),{method:"get",path:"/random/postcodes",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode."}),"\n",(0,n.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(c(),{parameters:[{name:"outcode",in:"query",description:"Filters random postcodes by outcode. Returns null if invalid outcode.",style:"form",explode:!1,schema:{title:"Outward code",type:"string",example:"SW1A"}}]}),"\n",(0,n.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. May be empty for areas without county-level administration.",example:""},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:null},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function C(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(S,{...e})}):S(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/735c778a.d2103fc5.js b/build/assets/js/735c778a.d2103fc5.js new file mode 100644 index 000000000..dd7afebfd --- /dev/null +++ b/build/assets/js/735c778a.d2103fc5.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[7110],{54192(e,t,i){i.r(t),i.d(t,{assets:()=>y,contentTitle:()=>S,default:()=>x,frontMatter:()=>f,metadata:()=>a,toc:()=>g});const a=JSON.parse('{"id":"api/random-postcode","title":"Get a Random Postcode","description":"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.","source":"@site/docs/api/random-postcode.api.mdx","sourceDirName":"api","slug":"/api/random-postcode","permalink":"/docs/api/random-postcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"random-postcode","title":"Get a Random Postcode","description":"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.","sidebar_label":"Get a Random Postcode","hide_title":true,"hide_table_of_contents":true,"api":"eJzVPO1y2ziSr9LF/WH5SpIl2U5i7Z9zHI/jGX+dJZc3G6cciIREjEGAA4B2dClX3UPcE96TXDVAUiRFSZYS5/ZSNWOJBBrdjUZ/C989Qyba63/2rqQ2vgyo9r40PRlTRQyT4jTw+p4iIpBRNsBregHVvmIxDvD63jU1iRIaCLiBfAqacuobGkCcTgLCpZjAEzMh+DKKFQ2p0OyRwoTKiSJxyPwmkCBigmmDaz/SJhARgDbEMG2YTzgExBAgWkufEYRuwZmQmHydttf0YqJIRA1VSNd3T5CIen1PJhn2DJH+K6FqOkfKb4zjvJSQHKqG0RRSAG3I6BUJ58DGwMQj4SzIB3hNT5spx0XHUkVe06PfYo5r98eEa9r0tB/SiHj9755hxg68TMwTUQGkKJppjE+1UUxMLAASx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X6cpxWDQrgS3wMpK/zFep++z+ro2C6AMaKFvqMuZQP6Ptdndpi34RKfKxyubWFmjvxt7/BsQjs7wpsnYjzWY+6TwS26hN7P072m3mcO6sc0XSuhfX169c7sWin0td3Amt9Fisf7wHQcHI8tBheXQ6G2Z0xuu2+OpHRtnc3vZ0HfylB4Wv1gp6vGTXZVTwavx8TP8yanxBClP3Unwjs/1MyVraB4ONweGULOonObuZwtxQgt34fXF5c5ZjZuy6o7SXG23Ow/Nyxw7S7R6gJe+kDAiMSZPPw8Z59jBWUMQZ5lur9bLaVWaBKSWVXmMcJN5lrmS0cZCW3nL6RDKYZG/AHx5hCdCzChyWByWs5aX3FFodn49v2DgHkOHElAhoRhudAJ3Eslfl3FlDCW7P99WU7ebAlDnt0Bm7Y3PGpnbaTAvVQ7+G7iIjCMTyh+JOQa3fX1KLrtb7PLm/6l7tpK7U6hn4zOzEnzJbWLV++p0rwc3p5mNf0ZmrwS9MLJf7S77P3/TsmCm4Uf37Gx+5WLlSOAdOo34L8zqyFTPlZd3bVEvNAp6W7w2wvvdf3rNrPlLDX/4wXVYWUBFRZ7N20Q6sHCrPm7t4qGY+T46H3/Py/zk6eSQ==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Find the Nearest Postcodes","permalink":"/docs/api/nearest-postcode"},"next":{"title":"Terminated Postcodes","permalink":"/docs/api/terminated-postcodes"}}');var n=i(31325),o=i(31736),r=i(47812),s=i.n(r),l=i(38616),d=i.n(l),c=i(67994),p=i.n(c),u=i(54768),h=i.n(u),m=(i(24909),i(96847),i(78121));const f={id:"random-postcode",title:"Get a Random Postcode",description:"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.",sidebar_label:"Get a Random Postcode",hide_title:!0,hide_table_of_contents:!0,api:"eJzVPO1y2ziSr9LF/WH5SpIl2U5i7Z9zHI/jGX+dJZc3G6cciIREjEGAA4B2dClX3UPcE96T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ON62F23CPJzOLgBknMVjuOrWSHjdeXvZTWPqsl6i3Kw360tUiDus1rEa2P/srLFvMV/fkbPqHoRwbP71/S+tfD7wM5wN7RwIiZe3wuNiW3mckQ5lq2uz/B6BpkoNIX2re7v7JCYteNCpn3H3dWyU/ipsvfczIH6DkwG9OjstAjUTxSH1gm0HuDu7k60Wvh968VLbeFaX5peRE0o8aacCTU2h2pCr+/NDbe3TajH7GKaRPEldM2l7A+vTm023jbKPRLFcH8xuWBvg8FrSlBWbNeOHd991+60O0g7wwqtdSfSu3DOT4des7K+jKlwfGlLNdlJJ+kdHFvYT8TiOu9fb5WKHiiHVEX6cpxWDQrgS3wMpK/zFep++z+ro2C6AMaKFvqMuZQP6Ptdndpi34RKfKxyubWFmjvxt7/BsQjs7wpsnYjzWY+6TwS26hN7P072m3mcO6sc0XSuhfX169c7sWin0td3Amt9Fisf7wHQcHI8tBheXQ6G2Z0xuu2+OpHRtnc3vZ0HfylB4Wv1gp6vGTXZVTwavx8TP8yanxBClP3Unwjs/1MyVraB4ONweGULOonObuZwtxQgt34fXF5c5ZjZuy6o7SXG23Ow/Nyxw7S7R6gJe+kDAiMSZPPw8Z59jBWUMQZ5lur9bLaVWaBKSWVXmMcJN5lrmS0cZCW3nL6RDKYZG/AHx5hCdCzChyWByWs5aX3FFodn49v2DgHkOHElAhoRhudAJ3Eslfl3FlDCW7P99WU7ebAlDnt0Bm7Y3PGpnbaTAvVQ7+G7iIjCMTyh+JOQa3fX1KLrtb7PLm/6l7tpK7U6hn4zOzEnzJbWLV++p0rwc3p5mNf0ZmrwS9MLJf7S77P3/TsmCm4Uf37Gx+5WLlSOAdOo34L8zqyFTPlZd3bVEvNAp6W7w2wvvdf3rNrPlLDX/4wXVYWUBFRZ7N20Q6sHCrPm7t4qGY+T46H3/Py/zk6eSQ==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},S=void 0,y={},g=[];function b(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Get a Random Postcode"}),"\n",(0,n.jsx)(s(),{method:"get",path:"/random/postcodes",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode."}),"\n",(0,n.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(d(),{parameters:[{name:"outcode",in:"query",description:"Filters random postcodes by outcode. Returns null if invalid outcode.",style:"form",explode:!1,schema:{title:"Outward code",type:"string",example:"SW1A"}}]}),"\n",(0,n.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Postcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive location data including geographic coordinates, administrative boundaries, and electoral information for the requested postcode",type:"object",required:["postcode","outcode","incode","quality","eastings","northings","country","nhs_ha","admin_county","admin_district","admin_ward","longitude","latitude","parliamentary_constituency","european_electoral_region","primary_care_trust","region","parish","lsoa","msoa","ced","ccg","pfa","date_of_introduction","date_of_termination","index_of_multiple_deprivation","parliamentary_constituency_2024","senedd_constituency","senedd_constituency_no","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2","nuts","codes"],properties:{postcode:{title:"Postcode",type:"string",description:"UK postcode format: 2-4 character outward code, a space, and a 3-character inward code (e.g., SW1A 2AA). Updated monthly from Royal Mail.",example:"SW1A 2AA"},outcode:{title:"Outward Code",type:"string",description:"The first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district.",example:"SW1A"},incode:{title:"Inward Code",type:"string",description:"The second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area.",example:"1AA"},quality:{title:"Positional Quality Indicator",type:"integer",description:"Positional Quality Indicator (1-9). Shows the status of the assigned grid reference:\n\n* 1: Within the building of the matched address closest to the postcode mean\n* 2: As for 1, except by visual inspection of Landline maps (Scotland only)\n* 3: Approximate to within 50 metres\n* 4: Postcode unit mean (averaged from addresses with same postcode)\n* 5: Estimated by ONS using surrounding postcodes\n* 6: Postcode sector mean (mainly PO Boxes)\n* 8: Terminated postcode (last known ONS grid reference)\n* 9: No coordinates available\n",example:1},eastings:{title:"Eastings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference easting (X-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:530047},northings:{title:"Northings",type:"integer",format:"int32",nullable:!0,description:"The OS grid reference northing (Y-coordinate) to 1 metre resolution. Relates to the British National Grid for GB and the Irish National Grid for Northern Ireland. Will be null for Channel Islands and Isle of Man.",example:179951},country:{title:"Country",type:"string",description:"The UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man).",example:"England"},nhs_ha:{title:"Strategic Health Authority",type:"string",nullable:!0,description:"The NHS health authority area for this postcode.",example:"London"},admin_county:{title:"County",type:"string",nullable:!0,description:"The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).",example:null},admin_district:{title:"District",type:"string",nullable:!0,description:"The administrative district or unitary authority for this postcode.",example:"Westminster"},admin_ward:{title:"Ward",type:"string",nullable:!0,description:"The electoral/administrative ward for this postcode.",example:"St. James's"},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.",example:-.12767},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.",example:51.503541},parliamentary_constituency:{title:"Westminster Parliamentary Constituency",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode.",example:"Cities of London and Westminster"},european_electoral_region:{title:"European Electoral Region (EER)",type:"string",nullable:!0,description:"The European Electoral Region for this postcode.",example:"London"},primary_care_trust:{title:"Primary Care Trust (PCT)",type:"string",nullable:!0,description:"The healthcare administrative area for this postcode. Different naming conventions apply across UK regions.",example:"Westminster"},region:{title:"Region",type:"string",nullable:!0,description:"The regional designation for this postcode (formerly Government Office Regions or GORs).",example:"London"},parish:{title:"Parish/Community",type:"string",nullable:!0,description:"The civil parish (England) or community (Wales) for this postcode.",example:"Westminster, unparished area"},lsoa:{title:"Lower Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data.",example:"Westminster 018C"},msoa:{title:"Middle Layer Super Output Area",type:"string",nullable:!0,description:"2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data.",example:"Westminster 018"},ced:{title:"County Electoral District",type:"string",nullable:!0,description:"The county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.",example:null},ccg:{title:"Clinical Commissioning Group",type:"string",nullable:!0,description:"NHS Clinical Commissioning Group responsible for planning healthcare services in England.",example:"NHS North West London"},pfa:{title:"Police Force Area",type:"string",nullable:!0,description:"The police force area for this postcode.",example:"Metropolitan Police"},date_of_introduction:{title:"Date of Introduction",type:"string",nullable:!0,description:"The date the postcode was introduced in YYYYMM format.",example:"198001"},date_of_termination:{title:"Date of Termination",type:"string",nullable:!0,description:"The date the postcode was terminated in YYYYMM format. Null for live postcodes.",example:null},index_of_multiple_deprivation:{title:"Index of Multiple Deprivation",type:"integer",format:"int32",nullable:!0,description:"ONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales \u2014 values are not directly comparable across countries.",example:14843},parliamentary_constituency_2024:{title:"Westminster Parliamentary Constituency (2024)",type:"string",nullable:!0,description:"The UK Parliamentary constituency for this postcode based on July 2024 boundaries.",example:"Cities of London and Westminster"},senedd_constituency:{title:"Senedd Cymru Constituency",type:"string",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:"Caerdydd Penarth"},senedd_constituency_no:{title:"Senedd Cymru Constituency Number",type:"integer",format:"int32",nullable:!0,description:"The Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.",example:14},nhs_region:{title:"NHS England Region",type:"string",nullable:!0,description:"The NHS England Region for this postcode. Only applicable to English postcodes.",example:"London"},ttwa:{title:"Travel to Work Area",type:"string",nullable:!0,description:"The Travel to Work Area for this postcode. TTWAs are areas where most people both live and work.",example:"London"},national_park:{title:"National Park",type:"string",nullable:!0,description:"The National Park this postcode falls within, if any.",example:null},bua:{title:"Built-up Area",type:"string",nullable:!0,description:"The Built-up Area (2022) for this postcode. Built-up areas are land which has been 'irreversibly urbanised'.",example:"Greater London"},icb:{title:"Integrated Care Board",type:"string",nullable:!0,description:"The NHS Integrated Care Board responsible for healthcare planning in this area.",example:"NHS North West London Integrated Care Board"},cancer_alliance:{title:"Cancer Alliance",type:"string",nullable:!0,description:"The Cancer Alliance for this postcode. Cancer Alliances bring together NHS providers and commissioners to improve cancer care.",example:"RM Partners (West London)"},lsoa11:{title:"Lower Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census LSOA code. Alias for the 'lsoa' field. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa11:{title:"Middle Layer Super Output Area (2011)",type:"string",nullable:!0,description:"2011 Census MSOA code. Alias for the 'msoa' field. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},lsoa21:{title:"Lower Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area.",example:"Westminster 018C"},msoa21:{title:"Middle Layer Super Output Area (2021)",type:"string",nullable:!0,description:"2021 Census MSOA code. In Scotland this is the Intermediate Zone.",example:"Westminster 018"},oa21:{title:"Output Area (2021)",type:"string",nullable:!0,description:"2021 Census Output Area code - the smallest census geography.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification (2011)",type:"string",nullable:!0,description:"The 2011 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},ruc21:{title:"Rural-Urban Classification (2021)",type:"string",nullable:!0,description:"The 2021 Census Rural-Urban Classification for this postcode.",example:"Urban major conurbation"},lep1:{title:"Local Enterprise Partnership (Primary)",type:"string",nullable:!0,description:"The primary Local Enterprise Partnership for this postcode. LEPs are partnerships between local authorities and businesses.",example:"London"},lep2:{title:"Local Enterprise Partnership (Secondary)",type:"string",nullable:!0,description:"The secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.",example:null},nuts:{title:"International Territorial Levels (ITL)",type:"string",nullable:!0,description:'Statistical geography code for international comparisons (formerly NUTS - Nomenclature of Units for Territorial Statistics).\n\nAs of January 2021, following Brexit, NUTS was replaced by ITL (International Territorial Levels) in the UK.\nFor backward compatibility, Postcodes.io continues to provide this data under the "nuts" field name.',example:"Westminster"},codes:{title:"Administrative Codes",type:"object",description:"Contains the GSS (Government Statistical Service) codes for administrative areas. Note: Returns 'Pseudo codes' (e.g., L99999999 for Channel Islands, M99999999 for Isle of Man, N99999999 for Northern Ireland, S99999999 for Scotland) for areas where a statutory geography does not exist. Client logic should handle these codes as 'Not Applicable' rather than treating them as valid IDs.",required:["admin_district","admin_county","admin_ward","parish","ccg","ccg_id","ced","nuts","lau2","lsoa","msoa","pfa","parliamentary_constituency","parliamentary_constituency_2024","nhs_region","ttwa","national_park","bua","icb","cancer_alliance","lsoa11","msoa11","lsoa21","msoa21","oa21","ruc11","ruc21","lep1","lep2"],properties:{admin_district:{title:"District GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative district.",example:"E09000033"},admin_county:{title:"County GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative county.",example:"E99999999"},admin_ward:{title:"Ward GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this administrative ward.",example:"E05013806"},parish:{title:"Parish GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this parish.",example:"E43000236"},ccg:{title:"CCG GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Clinical Commissioning Group.",example:"E38000256"},ccg_id:{title:"CCG ID",type:"string",nullable:!0,description:"Short code identifier for this Clinical Commissioning Group.",example:"W2U3Z"},ced:{title:"CED GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this County Electoral District.",example:"E99999999"},nuts:{title:"ITL Code",type:"string",nullable:!0,description:"Official code for this International Territorial Level area.",example:"TLI32"},lau2:{title:"LAU2 Code",type:"string",nullable:!0,description:"Local Administrative Unit level 2 code for this area.",example:"E09000033"},lsoa:{title:"LSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa:{title:"MSOA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},pfa:{title:"PFA GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Police Force Area.",example:"E23000001"},parliamentary_constituency:{title:"Parliamentary Constituency GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024.",example:"E14000639"},parliamentary_constituency_2024:{title:"Parliamentary Constituency GSS Code (2024)",type:"string",nullable:!0,description:"Official 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries.",example:"E14000639"},nhs_region:{title:"NHS Region GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this NHS England Region.",example:"E40000003"},ttwa:{title:"TTWA Code",type:"string",nullable:!0,description:"Travel to Work Area code.",example:"E30000234"},national_park:{title:"National Park GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this National Park.",example:null},bua:{title:"Built-up Area Code",type:"string",nullable:!0,description:"Built-up Area (2022) code.",example:"E34004786"},icb:{title:"ICB GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Integrated Care Board.",example:"E54000027"},cancer_alliance:{title:"Cancer Alliance GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this Cancer Alliance.",example:"E56000009"},lsoa11:{title:"LSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa.",example:"E01004736"},msoa11:{title:"MSOA 2011 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa.",example:"E02000977"},lsoa21:{title:"LSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census LSOA.",example:"E01004736"},msoa21:{title:"MSOA 2021 GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for this 2021 Census MSOA.",example:"E02000977"},oa21:{title:"Output Area 2021 Code",type:"string",nullable:!0,description:"2021 Census Output Area code.",example:"E00004185"},ruc11:{title:"Rural-Urban Classification 2011 Code",type:"string",nullable:!0,description:"2011 Census Rural-Urban Classification code.",example:"A1"},ruc21:{title:"Rural-Urban Classification 2021 Code",type:"string",nullable:!0,description:"2021 Census Rural-Urban Classification code.",example:"A1"},lep1:{title:"LEP (Primary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the primary Local Enterprise Partnership.",example:"E37000051"},lep2:{title:"LEP (Secondary) GSS Code",type:"string",nullable:!0,description:"Official 9-character GSS code for the secondary Local Enterprise Partnership.",example:null}}}},title:"Postcode"}}}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(b,{...e})}):b(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/7c98d41e.480c0f75.js b/build/assets/js/7c98d41e.480c0f75.js new file mode 100644 index 000000000..20dce4296 --- /dev/null +++ b/build/assets/js/7c98d41e.480c0f75.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[3512],{21703(e,t,i){i.r(t),i.d(t,{assets:()=>b,contentTitle:()=>y,default:()=>W,frontMatter:()=>h,metadata:()=>a,toc:()=>f});const a=JSON.parse('{"id":"api/find-outcode","title":"Find an Outward Code","description":"Returns aggregated information for postcodes grouped by their shared outward code.","source":"@site/docs/api/find-outcode.api.mdx","sourceDirName":"api","slug":"/api/find-outcode","permalink":"/docs/api/find-outcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"find-outcode","title":"Find an Outward Code","description":"Returns aggregated information for postcodes grouped by their shared outward code.","sidebar_label":"Find an Outward Code","hide_title":true,"hide_table_of_contents":true,"api":"eJzlWFtvG7cS/isDFjixgPVKduQ0FVCc47pumtSJDcuGHyyjpnZHu2y45JYXO4Kw//1guBetJMdwc/J2/GItLzPfDL8ZznDFHM8sm9yyc+8euUnhRKdo2V3EUrSJEaUTWrEJu0TnjbLAs8xgxh2mINRCm4LTAlhoA6W2LqHdkBntS0xhvgSXozBgc24wBd3ooFXxTM3UVY4bgyAs7YCFMNZBzuUC9AK4WnbCYe/1/hiSnBueODQWuEphoaXUj7VCDrbkCQ5iOI2zGO6nNwfH963cDV2EOUzDwfHxfTxTLGK6RBMsep+yCftNqPTcB70sYiU3vEBSyia3K6Z4gWzCdDcvyE8ldznbdt60xEQsBD4BYqk9PAqbg9Pwt0ezjFnEDP7thcGUTZzxGDH8wotSkjaCyyJm3TJ8WhHGaUUpCcVkwaXFiNkkx4KzyYq5ZRlWOiNUxqrqjsTbUiuLluYPRyP6twXYJwlayyKWaOVQOVrCy1KKJHhn+Jeldau+HuECpMZfcNkoYVELQc//wsRtmHfLrOPO2zBovXREvNLQKThR42sWrC0RymGGhkWspl899PqQvKB8wSa3h6PRXdVJ3DHuRBelwRyVFQ8IGerM8DIXCZeBTDwthBLWEQ8eEFLueKAKHZ1tDjJQmcyMQKhE+lSoDKSunQOJ1iYViju00ba4ufYq5UaEKZWCQRmCifjNZT+miI0KzxeBbH2XrRmH3DqhMnKf0s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SGt7bGYUFziAg1SNbUPF5uQHZrCni8Ip9g45g3npjqxnYYdQ/siqQ/msDDYK6ql1p99CYSEgi9DTcOm63mu/wit+g8/wKlKSy2Uo89jKcHWsCwkXNElwkPTiCksjC7qPj405tQcYbM3yLq/v5+pr51UM10/DgRUSYKls/Du9CogvDifXgE1RGidjevPmjQWvKXrLbSsQLkN7re71vvWmrZBtfR9ypMc2r6YsnxzAwFXwEvqbYygmvb3q6sLmIaWtO7f9/ALoQve+jA9/3TRIRvEcJWjxaZDRDgcjcIyWzfXEYybAQ5znrb7aHgchpUmsZ5aUpXCUbs7cBbQGG2Chl1MdMjS6lYxvdSE0+jsm+t02brh2LsclWtcRIMbhEk12oCk6UBDfbleX7+akMd5XdliwQXFgfVlqY37j0iRy/31+SY69p+pYKlDZ1ov2wmfJ7cNG6GMkj3NFVz1wpBea+i8+i9Z29GwWj9o/L88aTVXvMMvblhKLijZ195eNcm1e1Kg5DFpW/e7iOXaOpperebc4rWRVUXD4Z2KTW7v1okzZOBUWPqddq9QX3X93mXznjGAf/o29qQ5bXmjliGZS09fLGKfcdl7oquomMqRp2gC3nr2OKSX3r6dd66NW+nd6RWrqv8Cn1dZBQ==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Outward Codes","permalink":"/docs/api/outward-codes"},"next":{"title":"Places","permalink":"/docs/api/places"}}');var n=i(31325),o=i(31736),s=i(47812),r=i.n(s),d=i(38616),c=i.n(d),p=i(67994),l=i.n(p),u=i(54768),m=i.n(u),g=(i(24909),i(96847),i(78121));const h={id:"find-outcode",title:"Find an Outward Code",description:"Returns aggregated information for postcodes grouped by their shared outward code.",sidebar_label:"Find an Outward Code",hide_title:!0,hide_table_of_contents:!0,api:"eJzlWFtvG7cS/isDFjixgPVKduQ0FVCc47pumtSJDcuGHyyjpnZHu2y45JYXO4Kw//1guBetJMdwc/J2/GItLzPfDL8ZznDFHM8sm9yyc+8euUnhR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Bea+i8+i9Z29GwWj9o/L88aTVXvMMvblhKLijZ195eNcm1e1Kg5DFpW/e7iOXaOpperebc4rWRVUXD4Z2KTW7v1okzZOBUWPqddq9QX3X93mXznjGAf/o29qQ5bXmjliGZS09fLGKfcdl7oquomMqRp2gC3nr2OKSX3r6dd66NW+nd6RWrqv8Cn1dZBQ==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},y=void 0,b={},f=[];function w(e){const t={code:"code",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.default,{as:"h1",className:"openapi__heading",children:"Find an Outward Code"}),"\n",(0,n.jsx)(r(),{method:"get",path:"/outcodes/{outcode}",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Returns aggregated information for postcodes grouped by their shared outward code."}),"\n",(0,n.jsxs)(t.p,{children:["The outward code is the first half of any postcode (3-4 characters and followed by a space). E.g. ",(0,n.jsx)(t.code,{children:"SW1A"})," is the outward code for ",(0,n.jsx)(t.code,{children:"SW1A 1AA"}),"."]}),"\n",(0,n.jsx)(g.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(c(),{parameters:[{name:"outcode",in:"path",description:"Specifies the outward code you wish to query.",required:!0,example:"SW1A",style:"simple",explode:!1,schema:{type:"string"}}]}),"\n",(0,n.jsx)(l(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Outcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive geographical and administrative data for the specified outcode, including location coordinates, administrative boundaries, and related postal information",oneOf:[{required:["outcode","eastings","northings","admin_county","admin_district","admin_ward","longitude","latitude","country","parish","parliamentary_constituency"],properties:{outcode:{title:"Outcode",type:"string",description:'First part of the postcode before the space (e.g., "SW1A" in "SW1A 1AA"). Usually 2-4 characters.',example:"SW1A"},eastings:{title:"Eastings",type:"number",format:"int32",nullable:!0,description:"Ordnance Survey eastings coordinate (1m resolution). Returns 0 if location unavailable.",example:529740},northings:{title:"Northings",type:"number",format:"int32",nullable:!0,description:"Ordnance Survey northings coordinate (1m resolution). Returns 0 if location unavailable.",example:180066},admin_county:{title:"Administrative County",type:"array",items:{type:"string"},description:"Administrative counties within this outcode.",example:["(pseudo) England (UA/MD/LB)"]},admin_district:{title:"District",type:"array",items:{type:"string"},description:"District/unitary authorities within this outcode.",example:["Westminster","Wandsworth"]},admin_ward:{title:"Ward",type:"array",items:{type:"string"},description:"Administrative/electoral wards within this outcode.",example:["Nine Elms","St. James's"]},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate. May be null if location unavailable.",example:-.132066},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate. May be null if location unavailable.",example:51.50464},country:{title:"Country",type:"array",items:{type:"string"},description:"Countries within this outcode.",example:["England"]},parish:{title:"Parish",type:"array",items:{type:"string"},description:"Parishes (England) or communities (Wales) within this outcode.",example:["Wandsworth, unparished area","Westminster, unparished area"]},parliamentary_constituency:{title:"Parliamentary Constituency",type:"array",items:{type:"string"},description:"UK Parliamentary constituencies (July 2024 boundaries) that intersect this outcode.",example:["Cities of London and Westminster","Battersea"]}},title:"Outcode"}]}}}}}}}})]})}function W(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(w,{...e})}):w(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/7c98d41e.726e233e.js b/build/assets/js/7c98d41e.726e233e.js deleted file mode 100644 index b0b591aa9..000000000 --- a/build/assets/js/7c98d41e.726e233e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkpostcodes_io=globalThis.webpackChunkpostcodes_io||[]).push([[3512],{21703(e,t,i){i.r(t),i.d(t,{assets:()=>b,contentTitle:()=>h,default:()=>x,frontMatter:()=>f,metadata:()=>a,toc:()=>g});const a=JSON.parse('{"id":"api/find-outcode","title":"Find an Outward Code","description":"Returns aggregated information for postcodes grouped by their shared outward code.","source":"@site/docs/api/find-outcode.api.mdx","sourceDirName":"api","slug":"/api/find-outcode","permalink":"/docs/api/find-outcode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"find-outcode","title":"Find an Outward Code","description":"Returns aggregated information for postcodes grouped by their shared outward code.","sidebar_label":"Find an Outward Code","hide_title":true,"hide_table_of_contents":true,"api":"eJzlWFtvG7cS/isDFjixgdVKVuw0FVC0ruumSdPYsBz4wTLq0e5olw2X3JJcO4Kh/34w3ItWkmO4OXk7frGWl5lvht8MZ/ggPGZOTK7FWeXv0aZwYlJy4iYSKbnEytJLo8VEXJCvrHaAWWYpQ08pSL0wtkBeAAtjoTTOJ7wbMmuqklKYL8HnJC24HC2lYBodvCqe6Zm+zGljEKTjHbCQ1nnIUS3ALAD1shMOey8Hh5DkaDHxZB2gTmFhlDL3tUIEV2JC+zGcxlkMt9Org+PbVu6GLsYcpuHg+Pg2nmkRCVOSDRa9TcVE/CZ1elYFvSISJVosiJWKyfWD0FiQmAjTzUv2U4k+F9vOm5aUyIWkR0AsTQX30uXgDfxTkV3GIhKW/qmkpVRMvK0oEvQZi1KxNoYrIuH8Mnw6GcZ5RakYxWSBylEkXJJTgWLyIPyyDCu9lToTq9UNi3el0Y4cz49HI/63BbhKEnJORCIx2pP2vATLUskkeGf4t+N1D3090gdIjb/golEiohaCmf9Nid8w71o4j75yYdBVyjPxSsun4GWNr1mwtkRqTxlZEYmafvXQyzF7QVeFmFyPR6ObVSdxx7gTU5SWctJO3hFkZDKLZS4TVIFMmBZSS+eZB3cEKXoMVOGjc81BBiqzmRFInagqlToDZWrnQGKMTaVGTy7aFjc3lU7RyjClU7CkQjAxv1H1Y4rZqOlsEcjWd9macYTOS52x+7SxPm9+B5V/JabSftl9poxBBv/XA8xBEQlldCZ9FeQp9O3PsNsua9p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2N1J4/j5UCV8NykKDmSwRDX0gpLKwp6lY99N7c/1CzN8i6vb2d6S+dVDNd9/8BVZJQ6R28Ob0MCM/PppfAPQ857+L6syaNg8rx9Ra6UuDcBrfbjelta03bgzr+PsUkh7b15Szf3ECAGrDk9sVKLlt/v7w8h2noOusWfY8+M7rgrXfTsw/nHbL9GC5zctQ0gQTj0Sgsc3X/HMFhM4Awx7Tdx8OHYVgbFltx16lTOGp3B84CWWts0LCLiQ9ZOdMq5seYcBqdfXOTLls3HFc+J+0bF/HgBmFSQy4gaZrMUF+u19cPI+xxrCtbKlByHLiqLI31P8uUUA3W55uYuPrEBUsdOtN62U74PLpt2AgVnOx5rkDdC0N+kOHz6j9WbUfDw/rN4v/l1aq54j199sNSoeRkX3v7oUmu3asBJ49J253fRCI3zvP0w8McHX20arXi4fAUxb3NOnGGDJxKx7/T7qHpi67fu2ieLPbh3z5/PWpOW97oZUjmquIvEYlPtOy9wq24mMoJU7IBbz17HNJLb9/OU9bGrfTm9FKsVv8F2elQgw==","sidebar_class_name":"get api-method","info_path":"docs/api/api-reference-postcodes-io","custom_edit_url":null},"sidebar":"openApiSidebar","previous":{"title":"Outward Codes","permalink":"/docs/api/outward-codes"},"next":{"title":"Places","permalink":"/docs/api/places"}}');var o=i(31325),s=i(31736),n=i(47812),r=i.n(n),d=i(38616),l=i.n(d),c=i(67994),u=i.n(c),p=i(54768),m=i.n(p),y=(i(24909),i(96847),i(78121));const f={id:"find-outcode",title:"Find an Outward Code",description:"Returns aggregated information for postcodes grouped by their shared outward code.",sidebar_label:"Find an Outward Code",hide_title:!0,hide_table_of_contents:!0,api:"eJzlWFtvG7cS/isDFjixgdVKVuw0FVC0ruumSdPYsBz4wTLq0e5olw2X3JJcO4Kh/34w3ItWkmO4OXk7frGWl5lvht8MZ/ggPGZOTK7FWeXv0aZwYlJy4iYSKbnEytJLo8VEXJCvrHaAWWYpQ08pSL0wtkBeAAtjoTTOJ7wbMmuqklKYL8HnJC24HC2lYBodvCqe6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mquIvEYlPtOy9wq24mMoJU7IBbz17HNJLb9/OU9bGrfTm9FKsVv8F2elQgw==",sidebar_class_name:"get api-method",info_path:"docs/api/api-reference-postcodes-io",custom_edit_url:null},h=void 0,b={},g=[];function w(e){const t={code:"code",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.default,{as:"h1",className:"openapi__heading",children:"Find an Outward Code"}),"\n",(0,o.jsx)(r(),{method:"get",path:"/outcodes/{outcode}",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Returns aggregated information for postcodes grouped by their shared outward code."}),"\n",(0,o.jsxs)(t.p,{children:["The outward code is the first half of any postcode (3-4 characters and followed by a space). E.g. ",(0,o.jsx)(t.code,{children:"SW1A"})," is the outward code for ",(0,o.jsx)(t.code,{children:"SW1A 1AA"}),"."]}),"\n",(0,o.jsx)(y.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(l(),{parameters:[{name:"outcode",in:"path",description:"Specifies the outward code you wish to query.",required:!0,example:"SW1A",style:"simple",explode:!1,schema:{type:"string"}}]}),"\n",(0,o.jsx)(u(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Success",content:{"application/json":{schema:{title:"Outcode Response",type:"object",required:["status","result"],properties:{status:{type:"integer",format:"int32",enum:[200]},result:{description:"Comprehensive geographical and administrative data for the specified outcode, including location coordinates, administrative boundaries, and related postal information",oneOf:[{required:["outcode","eastings","northings","admin_county","admin_district","admin_ward","longitude","latitude","country","parish","parliamentary_constituency"],properties:{outcode:{title:"Outcode",type:"string",description:'First part of the postcode before the space (e.g., "SW1A" in "SW1A 1AA"). Usually 2-4 characters.',example:"SW1A"},eastings:{title:"Eastings",type:"number",format:"int32",nullable:!0,description:"Ordnance Survey eastings coordinate (1m resolution). Returns 0 if location unavailable.",example:529740},northings:{title:"Northings",type:"number",format:"int32",nullable:!0,description:"Ordnance Survey northings coordinate (1m resolution). Returns 0 if location unavailable.",example:180066},admin_county:{title:"Administrative County",type:"array",items:{type:"string"},description:"Administrative counties within this outcode.",example:[]},admin_district:{title:"District",type:"array",items:{type:"string"},description:"District/unitary authorities within this outcode.",example:["Westminster","Wandsworth"]},admin_ward:{title:"Ward",type:"array",items:{type:"string"},description:"Administrative/electoral wards within this outcode.",example:["Nine Elms","St. James's"]},longitude:{title:"Longitude",type:"number",format:"double",nullable:!0,description:"WGS84 longitude coordinate. May be null if location unavailable.",example:-.132066},latitude:{title:"Latitude",type:"number",format:"double",nullable:!0,description:"WGS84 latitude coordinate. May be null if location unavailable.",example:51.50464},country:{title:"Country",type:"array",items:{type:"string"},description:"Countries within this outcode.",example:["England"]},parish:{title:"Parish",type:"array",items:{type:"string"},description:"Parishes (England) or communities (Wales) within this outcode.",example:["Wandsworth, unparished area","Westminster, unparished area"]},parliamentary_constituency:{title:"Parliamentary Constituency",type:"array",items:{type:"string"},description:"UK Parliamentary constituencies (July 2024 boundaries) that intersect this outcode.",example:["Cities of London and Westminster","Battersea"]}},title:"Outcode"}]}}}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(w,{...e})}):w(e)}}}]); \ No newline at end of file diff --git a/build/assets/js/runtime~main.4ee5051f.js b/build/assets/js/runtime~main.4ee5051f.js new file mode 100644 index 000000000..d6f67cf72 --- /dev/null +++ b/build/assets/js/runtime~main.4ee5051f.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,d,c,t,r={},f={};function b(e){var a=f[e];if(void 0!==a)return a.exports;var d=f[e]={id:e,loaded:!1,exports:{}};return r[e].call(d.exports,d,d.exports,b),d.loaded=!0,d.exports}b.m=r,e=[],b.O=(a,d,c,t)=>{if(!d){var r=1/0;for(i=0;i=t)&&Object.keys(b.O).every(e=>b.O[e](d[o]))?d.splice(o--,1):(f=!1,t0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},b.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return b.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);b.r(t);var r={};a=a||[null,d({}),d([]),d(d)];for(var f=2&c&&e;("object"==typeof f||"function"==typeof f)&&!~a.indexOf(f);f=d(f))Object.getOwnPropertyNames(f).forEach(a=>r[a]=()=>e[a]);return r.default=()=>e,b.d(t,r),t},b.d=(e,a)=>{for(var d in a)b.o(a,d)&&!b.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce((a,d)=>(b.f[d](e,a),a),[])),b.u=e=>"assets/js/"+({595:"4c458f53",759:"2b8f49f9",849:"0058b4c6",1002:"6353b66b",1235:"18891827",1298:"078bec26",1516:"4c84271f",1640:"0541d31c",1922:"0ee0d964",2008:"31c97d68",2023:"6a48a440",2108:"1dbcc6b8",2385:"3b44cec4",2997:"0844282b",3512:"7c98d41e",3616:"a7456010",3640:"411a46a9",3665:"fab05eab",3909:"d21f8184",4084:"7eb04f43",4218:"af3d866a",4335:"51d64ed1",4471:"e44c8ba1",4583:"1df93b7f",5025:"d50dc08f",5117:"081ac812",5254:"99b9190f",5269:"e91465c1",5701:"03517118",5714:"1807015c",5742:"aba21aa0",5828:"e57f477d",6274:"5f449d3f",6473:"4c5e977b",6610:"e6bf6d82",6969:"14eb3368",7031:"36bb8c04",7098:"a7bd4aaa",7103:"7c33da12",7110:"735c778a",7130:"230c3767",7243:"945d44c5",7347:"770d7e55",7795:"d83d2af8",7854:"280de17d",8956:"df496ecf",9048:"a94703ab",9581:"fae2c40e",9589:"78f16176",9647:"5e95c892",9667:"4e6ae29d",9670:"6a5e000d",9915:"6173966b"}[e]||e)+"."+{595:"97238a6b",759:"144e7984",849:"27fefc67",1002:"ff06497d",1235:"bb792c29",1298:"8fd083b2",1516:"d619ac4b",1640:"73c01412",1922:"b26de3a5",2008:"1b2c4a87",2023:"cd6f8d24",2108:"bee08d1a",2385:"1a96dc4d",2997:"8a4a18f7",3512:"480c0f75",3616:"18c11abd",3640:"d841bd58",3665:"4a8c23e7",3909:"672095e0",4084:"786515ed",4218:"9841b381",4335:"bd3549c9",4471:"640a7d0d",4583:"7975d1c0",5025:"bcb28010",5117:"9ec2ccd7",5254:"0f16ba9c",5269:"64bd7da3",5701:"17c4c06a",5714:"8b14ec13",5742:"650071f6",5828:"4ae9c16b",5939:"26153cd6",6274:"2c36053f",6473:"190b2f25",6610:"a93d7c10",6735:"8e1eb97f",6969:"3e55b419",7031:"1d5e4613",7098:"687788d3",7103:"8db4353d",7110:"d2103fc5",7130:"1909573b",7243:"6fd5804f",7347:"3abad120",7368:"817409b5",7768:"ec491f9a",7795:"8bc786e6",7854:"6f003cc0",8914:"76d99df3",8956:"b3d16e4b",9048:"45ef9d19",9581:"87900c82",9589:"8af5bac6",9647:"b83fd0e5",9667:"29c1a44f",9670:"01663835",9915:"efbc619d"}[e]+".js",b.miniCssF=e=>{},b.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="postcodes.io:",b.l=(e,a,d,r)=>{if(c[e])c[e].push(a);else{var f,o;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],f.parentNode&&f.parentNode.removeChild(f),t&&t.forEach(e=>e(d)),a)return a(d)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=u.bind(null,f.onerror),f.onload=u.bind(null,f.onload),o&&document.head.appendChild(f)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),b.p="/",b.gca=function(e){return e={18891827:"1235","4c458f53":"595","2b8f49f9":"759","0058b4c6":"849","6353b66b":"1002","078bec26":"1298","4c84271f":"1516","0541d31c":"1640","0ee0d964":"1922","31c97d68":"2008","6a48a440":"2023","1dbcc6b8":"2108","3b44cec4":"2385","0844282b":"2997","7c98d41e":"3512",a7456010:"3616","411a46a9":"3640",fab05eab:"3665",d21f8184:"3909","7eb04f43":"4084",af3d866a:"4218","51d64ed1":"4335",e44c8ba1:"4471","1df93b7f":"4583",d50dc08f:"5025","081ac812":"5117","99b9190f":"5254",e91465c1:"5269","03517118":"5701","1807015c":"5714",aba21aa0:"5742",e57f477d:"5828","5f449d3f":"6274","4c5e977b":"6473",e6bf6d82:"6610","14eb3368":"6969","36bb8c04":"7031",a7bd4aaa:"7098","7c33da12":"7103","735c778a":"7110","230c3767":"7130","945d44c5":"7243","770d7e55":"7347",d83d2af8:"7795","280de17d":"7854",df496ecf:"8956",a94703ab:"9048",fae2c40e:"9581","78f16176":"9589","5e95c892":"9647","4e6ae29d":"9667","6a5e000d":"9670","6173966b":"9915"}[e]||e,b.p+b.u(e)},(()=>{var e={5354:0,1869:0};b.f.j=(a,d)=>{var c=b.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var t=new Promise((d,t)=>c=e[a]=[d,t]);d.push(c[2]=t);var r=b.p+b.u(a),f=new Error;b.l(r,d=>{if(b.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.src;f.message="Loading chunk "+a+" failed.\n("+t+": "+r+")",f.name="ChunkLoadError",f.type=t,f.request=r,c[1](f)}},"chunk-"+a,a)}},b.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,[r,f,o]=d,n=0;if(r.some(a=>0!==e[a])){for(c in f)b.o(f,c)&&(b.m[c]=f[c]);if(o)var i=o(b)}for(a&&a(d);n{"use strict";var e,a,c,d,t,r={},f={};function b(e){var a=f[e];if(void 0!==a)return a.exports;var c=f[e]={id:e,loaded:!1,exports:{}};return r[e].call(c.exports,c,c.exports,b),c.loaded=!0,c.exports}b.m=r,e=[],b.O=(a,c,d,t)=>{if(!c){var r=1/0;for(i=0;i=t)&&Object.keys(b.O).every(e=>b.O[e](c[o]))?c.splice(o--,1):(f=!1,t0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[c,d,t]},b.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return b.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var t=Object.create(null);b.r(t);var r={};a=a||[null,c({}),c([]),c(c)];for(var f=2&d&&e;("object"==typeof f||"function"==typeof f)&&!~a.indexOf(f);f=c(f))Object.getOwnPropertyNames(f).forEach(a=>r[a]=()=>e[a]);return r.default=()=>e,b.d(t,r),t},b.d=(e,a)=>{for(var c in a)b.o(a,c)&&!b.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce((a,c)=>(b.f[c](e,a),a),[])),b.u=e=>"assets/js/"+({595:"4c458f53",759:"2b8f49f9",849:"0058b4c6",1002:"6353b66b",1235:"18891827",1298:"078bec26",1516:"4c84271f",1640:"0541d31c",1922:"0ee0d964",2008:"31c97d68",2023:"6a48a440",2108:"1dbcc6b8",2385:"3b44cec4",2997:"0844282b",3512:"7c98d41e",3616:"a7456010",3640:"411a46a9",3665:"fab05eab",3909:"d21f8184",4084:"7eb04f43",4218:"af3d866a",4335:"51d64ed1",4471:"e44c8ba1",4583:"1df93b7f",5025:"d50dc08f",5117:"081ac812",5254:"99b9190f",5269:"e91465c1",5701:"03517118",5714:"1807015c",5742:"aba21aa0",5828:"e57f477d",6274:"5f449d3f",6473:"4c5e977b",6610:"e6bf6d82",6969:"14eb3368",7031:"36bb8c04",7098:"a7bd4aaa",7103:"7c33da12",7110:"735c778a",7130:"230c3767",7243:"945d44c5",7347:"770d7e55",7795:"d83d2af8",7854:"280de17d",8956:"df496ecf",9048:"a94703ab",9581:"fae2c40e",9589:"78f16176",9647:"5e95c892",9667:"4e6ae29d",9670:"6a5e000d",9915:"6173966b"}[e]||e)+"."+{595:"a87fee80",759:"a97c08f0",849:"27fefc67",1002:"663d6c32",1235:"bb792c29",1298:"8fd083b2",1516:"2abffb28",1640:"73c01412",1922:"b26de3a5",2008:"62c03ba9",2023:"cd6f8d24",2108:"bee08d1a",2385:"1a96dc4d",2997:"8a4a18f7",3512:"726e233e",3616:"18c11abd",3640:"d841bd58",3665:"4a8c23e7",3909:"672095e0",4084:"786515ed",4218:"9841b381",4335:"bd3549c9",4471:"640a7d0d",4583:"7975d1c0",5025:"bcb28010",5117:"2c751694",5254:"0f16ba9c",5269:"64bd7da3",5701:"17c4c06a",5714:"8b14ec13",5742:"650071f6",5828:"4ae9c16b",5939:"26153cd6",6274:"2c36053f",6473:"190b2f25",6610:"a93d7c10",6735:"8e1eb97f",6969:"3e55b419",7031:"2bbeadde",7098:"687788d3",7103:"8db4353d",7110:"9ec0fb88",7130:"1909573b",7243:"6fd5804f",7347:"3abad120",7368:"817409b5",7768:"ec491f9a",7795:"8bc786e6",7854:"6f003cc0",8914:"76d99df3",8956:"b3d16e4b",9048:"45ef9d19",9581:"87900c82",9589:"8af5bac6",9647:"b83fd0e5",9667:"268c2aa1",9670:"01663835",9915:"efbc619d"}[e]+".js",b.miniCssF=e=>{},b.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},t="postcodes.io:",b.l=(e,a,c,r)=>{if(d[e])d[e].push(a);else{var f,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var t=d[e];if(delete d[e],f.parentNode&&f.parentNode.removeChild(f),t&&t.forEach(e=>e(c)),a)return a(c)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=u.bind(null,f.onerror),f.onload=u.bind(null,f.onload),o&&document.head.appendChild(f)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),b.p="/",b.gca=function(e){return e={18891827:"1235","4c458f53":"595","2b8f49f9":"759","0058b4c6":"849","6353b66b":"1002","078bec26":"1298","4c84271f":"1516","0541d31c":"1640","0ee0d964":"1922","31c97d68":"2008","6a48a440":"2023","1dbcc6b8":"2108","3b44cec4":"2385","0844282b":"2997","7c98d41e":"3512",a7456010:"3616","411a46a9":"3640",fab05eab:"3665",d21f8184:"3909","7eb04f43":"4084",af3d866a:"4218","51d64ed1":"4335",e44c8ba1:"4471","1df93b7f":"4583",d50dc08f:"5025","081ac812":"5117","99b9190f":"5254",e91465c1:"5269","03517118":"5701","1807015c":"5714",aba21aa0:"5742",e57f477d:"5828","5f449d3f":"6274","4c5e977b":"6473",e6bf6d82:"6610","14eb3368":"6969","36bb8c04":"7031",a7bd4aaa:"7098","7c33da12":"7103","735c778a":"7110","230c3767":"7130","945d44c5":"7243","770d7e55":"7347",d83d2af8:"7795","280de17d":"7854",df496ecf:"8956",a94703ab:"9048",fae2c40e:"9581","78f16176":"9589","5e95c892":"9647","4e6ae29d":"9667","6a5e000d":"9670","6173966b":"9915"}[e]||e,b.p+b.u(e)},(()=>{var e={5354:0,1869:0};b.f.j=(a,c)=>{var d=b.o(e,a)?e[a]:void 0;if(0!==d)if(d)c.push(d[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var t=new Promise((c,t)=>d=e[a]=[c,t]);c.push(d[2]=t);var r=b.p+b.u(a),f=new Error;b.l(r,c=>{if(b.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var t=c&&("load"===c.type?"missing":c.type),r=c&&c.target&&c.target.src;f.message="Loading chunk "+a+" failed.\n("+t+": "+r+")",f.name="ChunkLoadError",f.type=t,f.request=r,d[1](f)}},"chunk-"+a,a)}},b.O.j=a=>0===e[a];var a=(a,c)=>{var d,t,[r,f,o]=c,n=0;if(r.some(a=>0!==e[a])){for(d in f)b.o(f,d)&&(b.m[d]=f[d]);if(o)var i=o(b)}for(a&&a(c);n API Reference - Postcodes.io | Postcodes.io - + diff --git a/build/docs/api/bulk-postcode-lookup/index.html b/build/docs/api/bulk-postcode-lookup/index.html index 40a9a9fbf..0623a28d4 100644 --- a/build/docs/api/bulk-postcode-lookup/index.html +++ b/build/docs/api/bulk-postcode-lookup/index.html @@ -4,7 +4,7 @@ Bulk Postcode Lookup | Postcodes.io - + diff --git a/build/docs/api/find-outcode/index.html b/build/docs/api/find-outcode/index.html index 28371103d..ebc9f569a 100644 --- a/build/docs/api/find-outcode/index.html +++ b/build/docs/api/find-outcode/index.html @@ -4,7 +4,7 @@ Find an Outward Code | Postcodes.io - + diff --git a/build/docs/api/find-place/index.html b/build/docs/api/find-place/index.html index fb30b2f7d..434413951 100644 --- a/build/docs/api/find-place/index.html +++ b/build/docs/api/find-place/index.html @@ -4,7 +4,7 @@ Find a Place by ID | Postcodes.io - + diff --git a/build/docs/api/get-scottish-postcode/index.html b/build/docs/api/get-scottish-postcode/index.html index db370bc1a..b286d1611 100644 --- a/build/docs/api/get-scottish-postcode/index.html +++ b/build/docs/api/get-scottish-postcode/index.html @@ -4,7 +4,7 @@ Lookup Scottish Postcode | Postcodes.io - + diff --git a/build/docs/api/index.html b/build/docs/api/index.html index a0c53c994..ccdcc0b35 100644 --- a/build/docs/api/index.html +++ b/build/docs/api/index.html @@ -4,7 +4,7 @@ API | Postcodes.io - + diff --git a/build/docs/api/lookup-postcode/index.html b/build/docs/api/lookup-postcode/index.html index a56395088..168c29f32 100644 --- a/build/docs/api/lookup-postcode/index.html +++ b/build/docs/api/lookup-postcode/index.html @@ -4,7 +4,7 @@ Lookup Postcode | Postcodes.io - + diff --git a/build/docs/api/lookup-terminated-postcode/index.html b/build/docs/api/lookup-terminated-postcode/index.html index d77ac125b..b04b3574b 100644 --- a/build/docs/api/lookup-terminated-postcode/index.html +++ b/build/docs/api/lookup-terminated-postcode/index.html @@ -4,7 +4,7 @@ Lookup Terminated Postcodes | Postcodes.io - + diff --git a/build/docs/api/nearest-postcode/index.html b/build/docs/api/nearest-postcode/index.html index 9c822f2c7..90086857f 100644 --- a/build/docs/api/nearest-postcode/index.html +++ b/build/docs/api/nearest-postcode/index.html @@ -4,7 +4,7 @@ Find the Nearest Postcodes | Postcodes.io - + diff --git a/build/docs/api/outward-codes/index.html b/build/docs/api/outward-codes/index.html index 1b4165385..f97a006ad 100644 --- a/build/docs/api/outward-codes/index.html +++ b/build/docs/api/outward-codes/index.html @@ -4,7 +4,7 @@ Outward Codes | Postcodes.io - + diff --git a/build/docs/api/place-query/index.html b/build/docs/api/place-query/index.html index 4103aec9e..9288835bb 100644 --- a/build/docs/api/place-query/index.html +++ b/build/docs/api/place-query/index.html @@ -4,7 +4,7 @@ Find a Place | Postcodes.io - + diff --git a/build/docs/api/places/index.html b/build/docs/api/places/index.html index ab5016ba3..59f5abbdd 100644 --- a/build/docs/api/places/index.html +++ b/build/docs/api/places/index.html @@ -4,7 +4,7 @@ Places | Postcodes.io - + diff --git a/build/docs/api/postcode-lookup/index.html b/build/docs/api/postcode-lookup/index.html index dec1cb394..0e954bbd6 100644 --- a/build/docs/api/postcode-lookup/index.html +++ b/build/docs/api/postcode-lookup/index.html @@ -4,7 +4,7 @@ Autocomplete Search a Postcode | Postcodes.io - + diff --git a/build/docs/api/postcodes/index.html b/build/docs/api/postcodes/index.html index caa0ff00b..b3a553162 100644 --- a/build/docs/api/postcodes/index.html +++ b/build/docs/api/postcodes/index.html @@ -4,7 +4,7 @@ Postcodes | Postcodes.io - + diff --git a/build/docs/api/random-place/index.html b/build/docs/api/random-place/index.html index 3d411d339..ed3d3c863 100644 --- a/build/docs/api/random-place/index.html +++ b/build/docs/api/random-place/index.html @@ -4,7 +4,7 @@ Retrieve a Random Place | Postcodes.io - + diff --git a/build/docs/api/random-postcode/index.html b/build/docs/api/random-postcode/index.html index f9c528c34..93f487198 100644 --- a/build/docs/api/random-postcode/index.html +++ b/build/docs/api/random-postcode/index.html @@ -4,7 +4,7 @@ Get a Random Postcode | Postcodes.io - + diff --git a/build/docs/api/scottish-postcodes/index.html b/build/docs/api/scottish-postcodes/index.html index 885dd3fe2..d361d4559 100644 --- a/build/docs/api/scottish-postcodes/index.html +++ b/build/docs/api/scottish-postcodes/index.html @@ -4,7 +4,7 @@ Scottish Postcodes | Postcodes.io - + diff --git a/build/docs/api/terminated-postcodes/index.html b/build/docs/api/terminated-postcodes/index.html index 17e224447..110cb40d6 100644 --- a/build/docs/api/terminated-postcodes/index.html +++ b/build/docs/api/terminated-postcodes/index.html @@ -4,7 +4,7 @@ Terminated Postcodes | Postcodes.io - + diff --git a/build/docs/libraries/index.html b/build/docs/libraries/index.html index 692f9428a..6148144f1 100644 --- a/build/docs/libraries/index.html +++ b/build/docs/libraries/index.html @@ -4,7 +4,7 @@ Libraries | Postcodes.io - + diff --git a/build/docs/licences/index.html b/build/docs/licences/index.html index f12355f00..22555ab55 100644 --- a/build/docs/licences/index.html +++ b/build/docs/licences/index.html @@ -4,7 +4,7 @@ Licences | Postcodes.io - + diff --git a/build/docs/outcode/lookup/index.html b/build/docs/outcode/lookup/index.html index 518812478..f2ee48030 100644 --- a/build/docs/outcode/lookup/index.html +++ b/build/docs/outcode/lookup/index.html @@ -4,7 +4,7 @@ Lookup an Outward Code | Postcodes.io - + diff --git a/build/docs/outcode/nearest/index.html b/build/docs/outcode/nearest/index.html index f64c5420d..7ccfcf3a2 100644 --- a/build/docs/outcode/nearest/index.html +++ b/build/docs/outcode/nearest/index.html @@ -4,7 +4,7 @@ Find Nearest Outcode | Postcodes.io - + diff --git a/build/docs/outcode/reverse-geocode/index.html b/build/docs/outcode/reverse-geocode/index.html index 1d168e473..f13869791 100644 --- a/build/docs/outcode/reverse-geocode/index.html +++ b/build/docs/outcode/reverse-geocode/index.html @@ -4,7 +4,7 @@ Reverse Geocode an Outcode | Postcodes.io - + diff --git a/build/docs/outcode/schema/index.html b/build/docs/outcode/schema/index.html index a48a2de29..576ccc20e 100644 --- a/build/docs/outcode/schema/index.html +++ b/build/docs/outcode/schema/index.html @@ -4,7 +4,7 @@ Outward Code Response Schema | Postcodes.io - + diff --git a/build/docs/overview/index.html b/build/docs/overview/index.html index 2af12e9b9..57d3a2779 100644 --- a/build/docs/overview/index.html +++ b/build/docs/overview/index.html @@ -4,7 +4,7 @@ Overview | Postcodes.io - + diff --git a/build/docs/place/lookup/index.html b/build/docs/place/lookup/index.html index aac21acb1..4569c2c0f 100644 --- a/build/docs/place/lookup/index.html +++ b/build/docs/place/lookup/index.html @@ -4,7 +4,7 @@ Lookup a GB Place | Postcodes.io - + diff --git a/build/docs/place/query/index.html b/build/docs/place/query/index.html index 51581bb4b..f13de93b4 100644 --- a/build/docs/place/query/index.html +++ b/build/docs/place/query/index.html @@ -4,7 +4,7 @@ Query for a Place | Postcodes.io - + diff --git a/build/docs/place/random/index.html b/build/docs/place/random/index.html index 3c061dbb9..58c945fc8 100644 --- a/build/docs/place/random/index.html +++ b/build/docs/place/random/index.html @@ -4,7 +4,7 @@ Retrieve a Random Place | Postcodes.io - + diff --git a/build/docs/place/schema/index.html b/build/docs/place/schema/index.html index dac8f15cd..002e326ac 100644 --- a/build/docs/place/schema/index.html +++ b/build/docs/place/schema/index.html @@ -4,7 +4,7 @@ Place Response Schema | Postcodes.io - + diff --git a/build/docs/postcode/autocomplete/index.html b/build/docs/postcode/autocomplete/index.html index ff7688dde..fdc8c2ed3 100644 --- a/build/docs/postcode/autocomplete/index.html +++ b/build/docs/postcode/autocomplete/index.html @@ -4,7 +4,7 @@ Autocomplete a Postcode | Postcodes.io - + diff --git a/build/docs/postcode/bulk-reverse-geocode/index.html b/build/docs/postcode/bulk-reverse-geocode/index.html index 9684ac7c8..be76feed3 100644 --- a/build/docs/postcode/bulk-reverse-geocode/index.html +++ b/build/docs/postcode/bulk-reverse-geocode/index.html @@ -4,7 +4,7 @@ Bulk Reverse Geocode Postcodes | Postcodes.io - + diff --git a/build/docs/postcode/bulk/index.html b/build/docs/postcode/bulk/index.html index 26faecb37..dc4ba3011 100644 --- a/build/docs/postcode/bulk/index.html +++ b/build/docs/postcode/bulk/index.html @@ -4,7 +4,7 @@ Bulk Lookup Postcodes | Postcodes.io - + diff --git a/build/docs/postcode/lookup/index.html b/build/docs/postcode/lookup/index.html index 8f2ab78af..082996d1a 100644 --- a/build/docs/postcode/lookup/index.html +++ b/build/docs/postcode/lookup/index.html @@ -4,7 +4,7 @@ Lookup a Postcode | Postcodes.io - + diff --git a/build/docs/postcode/nearest/index.html b/build/docs/postcode/nearest/index.html index c49fc55bf..9265a9e92 100644 --- a/build/docs/postcode/nearest/index.html +++ b/build/docs/postcode/nearest/index.html @@ -4,7 +4,7 @@ Find Nearest Postcode | Postcodes.io - + diff --git a/build/docs/postcode/query/index.html b/build/docs/postcode/query/index.html index 5ee828f11..a9f8a4fad 100644 --- a/build/docs/postcode/query/index.html +++ b/build/docs/postcode/query/index.html @@ -4,7 +4,7 @@ Query for a Postcode | Postcodes.io - + diff --git a/build/docs/postcode/random/index.html b/build/docs/postcode/random/index.html index a748314ad..ba87a78da 100644 --- a/build/docs/postcode/random/index.html +++ b/build/docs/postcode/random/index.html @@ -4,7 +4,7 @@ Retrieve a Random Postcode | Postcodes.io - + diff --git a/build/docs/postcode/reverse-geocode/index.html b/build/docs/postcode/reverse-geocode/index.html index b5808f9c3..7e34d36ec 100644 --- a/build/docs/postcode/reverse-geocode/index.html +++ b/build/docs/postcode/reverse-geocode/index.html @@ -4,7 +4,7 @@ Reverse Geocode a Postcode | Postcodes.io - + diff --git a/build/docs/postcode/schema/index.html b/build/docs/postcode/schema/index.html index 6f8439119..c86556186 100644 --- a/build/docs/postcode/schema/index.html +++ b/build/docs/postcode/schema/index.html @@ -4,7 +4,7 @@ Postcode Response Schema | Postcodes.io - + @@ -15,7 +15,7 @@

Example

{
"postcode": "SW1A 1AA",
"quality": 1,
"eastings": 529090,
"northings": 179645,
"country": "England",
"nhs_ha": "London",
"longitude": -0.141563,
"latitude": 51.50101,
"european_electoral_region": "London",
"primary_care_trust": "Westminster",
"region": "London",
"lsoa": "Westminster 018C",
"msoa": "Westminster 018",
"incode": "1AA",
"outcode": "SW1A",
"parliamentary_constituency": "Cities of London and Westminster",
"parliamentary_constituency_2024": "Cities of London and Westminster",
"senedd_constituency": null,
"senedd_constituency_no": null,
"admin_district": "Westminster",
"parish": "Westminster, unparished area",
"admin_county": "(pseudo) England (UA/MD/LB)",
"date_of_introduction": "198001",
"date_of_termination": null,
"index_of_multiple_deprivation": 24862,
"admin_ward": "St James's",
"ced": null,
"ccg": "NHS North West London",
"nuts": "Westminster",
"pfa": "Metropolitan Police",
"nhs_region": "London",
"ttwa": "London",
"national_park": "England (non-National Park)",
"bua": "City of Westminster",
"icb": "NHS North West London Integrated Care Board",
"cancer_alliance": "West London",
"lsoa11": "Westminster 018C",
"msoa11": "Westminster 018",
"lsoa21": "Westminster 018C",
"msoa21": "Westminster 018",
"oa21": "E00023938",
"ruc11": "(England/Wales) Urban major conurbation",
"ruc21": "Urban: Nearer to a major town or city",
"lep1": "London",
"lep2": null,
"codes": {
"admin_district": "E09000033",
"admin_county": "E99999999",
"admin_ward": "E05013806",
"parish": "E43000236",
"parliamentary_constituency": "E14001172",
"parliamentary_constituency_2024": "E14001172",
"ccg": "E38000256",
"ccg_id": "W2U3Z",
"ced": "E99999999",
"nuts": "TLI35",
"lsoa": "E01004736",
"msoa": "E02000977",
"lau2": "E09000033",
"pfa": "E23000001",
"nhs_region": "E40000003",
"ttwa": "E30000234",
"national_park": "E65000001",
"bua": "E63012036",
"icb": "E54000027",
"cancer_alliance": "E56000021",
"lsoa11": "E01004736",
"msoa11": "E02000977",
"lsoa21": "E01004736",
"msoa21": "E02000977",
"oa21": "E00023938",
"ruc11": "A1",
"ruc21": "UN1",
"lep1": "E37000051",
"lep2": null
}
}

Reference

-
FieldTypeDescriptionExample
postcodestringUK postcode format: 2-4 character outward code, a space, and a 3-character inward code. Updated monthly from Royal Mail."SW1A 2AA"
outcodestringThe first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district."SW1A"
incodestringThe second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area."1AA"
qualityintegerIndicates accuracy of the grid reference location (1-9 scale, 1 being most accurate).1
eastingsinteger | nullOrdnance Survey grid reference easting (X-coordinate) with 1-meter resolution. May be null if geolocation unavailable.530047
northingsinteger | nullOrdnance Survey grid reference northing (Y-coordinate) with 1-meter resolution. May be null if geolocation unavailable.179951
countrystringThe UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man)."England"
nhs_hastring | nullThe NHS health authority area for this postcode."London"
admin_countystring | nullThe administrative county for this postcode. May be empty for areas without county-level administration.""
admin_districtstring | nullThe administrative district or unitary authority for this postcode."Westminster"
admin_wardstring | nullThe electoral/administrative ward for this postcode."St. James's"
longitudenumber | nullWGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.-0.12767
latitudenumber | nullWGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.51.503541
parliamentary_constituencystring | nullThe UK Parliamentary constituency for this postcode."Cities of London and Westminster"
european_electoral_regionstring | nullThe European Electoral Region for this postcode."London"
primary_care_truststring | nullThe healthcare administrative area for this postcode. Different naming conventions apply across UK regions."Westminster"
regionstring | nullThe regional designation for this postcode (formerly Government Office Regions or GORs)."London"
parishstring | nullThe civil parish (England) or community (Wales) for this postcode."Westminster, unparished area"
lsoastring | null2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data."Westminster 018C"
msoastring | null2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data."Westminster 018"
cedstring | nullThe county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.null
ccgstring | nullNHS Clinical Commissioning Group responsible for planning healthcare services in England."NHS North West London"
nutsstring | nullInternational Territorial Levels (ITL) code for statistical geography (formerly NUTS - Nomenclature of Units for Territorial Statistics)."Westminster"
codesobjectStandard 9-character codes (ONS/GSS) for various administrative boundaries. Useful for data linking with official statistics.-
codes.admin_districtstring | nullOfficial 9-character GSS code for this administrative district."E09000033"
codes.admin_countystring | nullOfficial 9-character GSS code for this administrative county."E99999999"
codes.admin_wardstring | nullOfficial 9-character GSS code for this administrative ward."E05013806"
codes.parishstring | nullOfficial 9-character GSS code for this parish."E43000236"
codes.parliamentary_constituencystring | nullOfficial 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024."E14000639"
codes.ccgstring | nullOfficial 9-character GSS code for this Clinical Commissioning Group."E38000256"
codes.ccg_idstring | nullShort code identifier for this Clinical Commissioning Group."W2U3Z"
codes.cedstring | nullOfficial 9-character GSS code for this County Electoral District."E99999999"
codes.nutsstring | nullOfficial code for this International Territorial Level area."TLI32"
codes.lau2string | nullLocal Administrative Unit level 2 code for this area."E09000033"
codes.lsoastring | nullOfficial 9-character GSS code for this 2021 Census LSOA."E01004736"
codes.msoastring | nullOfficial 9-character GSS code for this 2021 Census MSOA."E02000977"
codes.pfastring | nullOfficial 9-character GSS code for this Police Force Area."E23000001"
pfastring | nullThe police force area for this postcode."Metropolitan Police"
date_of_introductionstring | nullThe date the postcode was introduced in YYYYMM format."198001"
date_of_terminationstring | nullThe date the postcode was terminated in YYYYMM format. null for live postcodes.null
index_of_multiple_deprivationinteger | nullONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales — values are not directly comparable across countries.14843
parliamentary_constituency_2024string | nullThe UK Parliamentary constituency for this postcode based on July 2024 boundaries."Cities of London and Westminster"
senedd_constituencystring | nullThe Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere."Caerdydd Penarth"
senedd_constituency_nointeger | nullThe Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.14
nhs_regionstring | nullThe NHS England Region for this postcode. Only applicable to English postcodes."London"
ttwastring | nullThe Travel to Work Area for this postcode. TTWAs are areas where most people both live and work."London"
national_parkstring | nullThe National Park this postcode falls within, if any.null
buastring | nullThe Built-up Area (2022) for this postcode."Greater London"
icbstring | nullThe NHS Integrated Care Board responsible for healthcare planning in this area."NHS North West London ICB"
cancer_alliancestring | nullThe Cancer Alliance for this postcode."RM Partners (West London)"
lsoa11string | null2011 Census LSOA code. Alias for the 'lsoa' field."Westminster 018C"
msoa11string | null2011 Census MSOA code. Alias for the 'msoa' field."Westminster 018"
lsoa21string | null2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area."Westminster 018C"
msoa21string | null2021 Census MSOA code. In Scotland this is the Intermediate Zone."Westminster 018"
oa21string | null2021 Census Output Area code - the smallest census geography."E00004185"
ruc11string | nullThe 2011 Census Rural-Urban Classification for this postcode."Urban major conurbation"
ruc21string | nullThe 2021 Census Rural-Urban Classification for this postcode."Urban major conurbation"
lep1string | nullThe primary Local Enterprise Partnership for this postcode."London"
lep2string | nullThe secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.null
codes.nhs_regionstring | nullOfficial 9-character GSS code for this NHS England Region."E40000003"
codes.ttwastring | nullTravel to Work Area code."E30000234"
codes.national_parkstring | nullOfficial 9-character GSS code for this National Park.null
codes.buastring | nullBuilt-up Area (2022) code."E34004786"
codes.icbstring | nullOfficial 9-character GSS code for this Integrated Care Board."E54000027"
codes.cancer_alliancestring | nullOfficial 9-character GSS code for this Cancer Alliance."E56000009"
codes.lsoa11string | nullOfficial 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa."E01004736"
codes.msoa11string | nullOfficial 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa."E02000977"
codes.lsoa21string | nullOfficial 9-character GSS code for this 2021 Census LSOA."E01004736"
codes.msoa21string | nullOfficial 9-character GSS code for this 2021 Census MSOA."E02000977"
codes.oa21string | null2021 Census Output Area code."E00004185"
codes.ruc11string | null2011 Census Rural-Urban Classification code."A1"
codes.ruc21string | null2021 Census Rural-Urban Classification code."A1"
codes.lep1string | nullOfficial 9-character GSS code for the primary Local Enterprise Partnership."E37000051"
codes.lep2string | nullOfficial 9-character GSS code for the secondary Local Enterprise Partnership.null
codes.parliamentary_constituency_2024string | nullOfficial 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries."E14000639"
+
FieldTypeDescriptionExample
postcodestringUK postcode format: 2-4 character outward code, a space, and a 3-character inward code. Updated monthly from Royal Mail."SW1A 2AA"
outcodestringThe first part of a postcode before the space (2-4 characters). This generally identifies the postal town or district."SW1A"
incodestringThe second part of a postcode after the space (always 3 characters). Helps identify specific streets or buildings within a postal area."1AA"
qualityintegerIndicates accuracy of the grid reference location (1-9 scale, 1 being most accurate).1
eastingsinteger | nullOrdnance Survey grid reference easting (X-coordinate) with 1-meter resolution. May be null if geolocation unavailable.530047
northingsinteger | nullOrdnance Survey grid reference northing (Y-coordinate) with 1-meter resolution. May be null if geolocation unavailable.179951
countrystringThe UK constituent country for this postcode (England, Scotland, Wales, Northern Ireland, Channel Islands, or Isle of Man)."England"
nhs_hastring | nullThe NHS health authority area for this postcode."London"
admin_countystring | nullThe administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as E99999999, surfaced under codes.admin_county).null
admin_districtstring | nullThe administrative district or unitary authority for this postcode."Westminster"
admin_wardstring | nullThe electoral/administrative ward for this postcode."St. James's"
longitudenumber | nullWGS84 longitude coordinate (east-west position). May be null if geolocation unavailable.-0.12767
latitudenumber | nullWGS84 latitude coordinate (north-south position). May be null if geolocation unavailable.51.503541
parliamentary_constituencystring | nullThe UK Parliamentary constituency for this postcode."Cities of London and Westminster"
european_electoral_regionstring | nullThe European Electoral Region for this postcode."London"
primary_care_truststring | nullThe healthcare administrative area for this postcode. Different naming conventions apply across UK regions."Westminster"
regionstring | nullThe regional designation for this postcode (formerly Government Office Regions or GORs)."London"
parishstring | nullThe civil parish (England) or community (Wales) for this postcode."Westminster, unparished area"
lsoastring | null2021 Census LSOA code (smaller statistical area, typically 1,000-1,500 residents). Now points to 2021 data."Westminster 018C"
msoastring | null2021 Census MSOA code (mid-size statistical area, typically 5,000-7,000 residents). Now points to 2021 data."Westminster 018"
cedstring | nullThe county electoral division for English postcodes. Will be null for postcodes without a grid reference or in other UK regions.null
ccgstring | nullNHS Clinical Commissioning Group responsible for planning healthcare services in England."NHS North West London"
nutsstring | nullInternational Territorial Levels (ITL) code for statistical geography (formerly NUTS - Nomenclature of Units for Territorial Statistics)."Westminster"
codesobjectStandard 9-character codes (ONS/GSS) for various administrative boundaries. Useful for data linking with official statistics.-
codes.admin_districtstring | nullOfficial 9-character GSS code for this administrative district."E09000033"
codes.admin_countystring | nullOfficial 9-character GSS code for this administrative county."E99999999"
codes.admin_wardstring | nullOfficial 9-character GSS code for this administrative ward."E05013806"
codes.parishstring | nullOfficial 9-character GSS code for this parish."E43000236"
codes.parliamentary_constituencystring | nullOfficial 9-character GSS code for this Parliamentary Constituency (July 2024 boundaries). Alias for codes.parliamentary_constituency_2024."E14000639"
codes.ccgstring | nullOfficial 9-character GSS code for this Clinical Commissioning Group."E38000256"
codes.ccg_idstring | nullShort code identifier for this Clinical Commissioning Group."W2U3Z"
codes.cedstring | nullOfficial 9-character GSS code for this County Electoral District."E99999999"
codes.nutsstring | nullOfficial code for this International Territorial Level area."TLI32"
codes.lau2string | nullLocal Administrative Unit level 2 code for this area."E09000033"
codes.lsoastring | nullOfficial 9-character GSS code for this 2021 Census LSOA."E01004736"
codes.msoastring | nullOfficial 9-character GSS code for this 2021 Census MSOA."E02000977"
codes.pfastring | nullOfficial 9-character GSS code for this Police Force Area."E23000001"
pfastring | nullThe police force area for this postcode."Metropolitan Police"
date_of_introductionstring | nullThe date the postcode was introduced in YYYYMM format."198001"
date_of_terminationstring | nullThe date the postcode was terminated in YYYYMM format. null for live postcodes.null
index_of_multiple_deprivationinteger | nullONS Index of Multiple Deprivation (IMD) rank for this postcode's LSOA. Lower ranks correspond to more deprived areas. England, Wales, Scotland and Northern Ireland use independent IMD scales — values are not directly comparable across countries.14843
parliamentary_constituency_2024string | nullThe UK Parliamentary constituency for this postcode based on July 2024 boundaries."Cities of London and Westminster"
senedd_constituencystring | nullThe Senedd Cymru (Welsh Parliament) constituency for this postcode. Only applicable to Welsh postcodes; null elsewhere."Caerdydd Penarth"
senedd_constituency_nointeger | nullThe Senedd Cymru (Welsh Parliament) constituency number for this postcode. Only applicable to Welsh postcodes; null elsewhere.14
nhs_regionstring | nullThe NHS England Region for this postcode. Only applicable to English postcodes."London"
ttwastring | nullThe Travel to Work Area for this postcode. TTWAs are areas where most people both live and work."London"
national_parkstring | nullThe National Park this postcode falls within, if any.null
buastring | nullThe Built-up Area (2022) for this postcode."Greater London"
icbstring | nullThe NHS Integrated Care Board responsible for healthcare planning in this area."NHS North West London ICB"
cancer_alliancestring | nullThe Cancer Alliance for this postcode."RM Partners (West London)"
lsoa11string | null2011 Census LSOA code. Alias for the 'lsoa' field."Westminster 018C"
msoa11string | null2011 Census MSOA code. Alias for the 'msoa' field."Westminster 018"
lsoa21string | null2021 Census LSOA code. In Scotland this is the Data Zone, in Northern Ireland the Small Area."Westminster 018C"
msoa21string | null2021 Census MSOA code. In Scotland this is the Intermediate Zone."Westminster 018"
oa21string | null2021 Census Output Area code - the smallest census geography."E00004185"
ruc11string | nullThe 2011 Census Rural-Urban Classification for this postcode."Urban major conurbation"
ruc21string | nullThe 2021 Census Rural-Urban Classification for this postcode."Urban major conurbation"
lep1string | nullThe primary Local Enterprise Partnership for this postcode."London"
lep2string | nullThe secondary Local Enterprise Partnership for this postcode, if it falls within overlapping LEP areas.null
codes.nhs_regionstring | nullOfficial 9-character GSS code for this NHS England Region."E40000003"
codes.ttwastring | nullTravel to Work Area code."E30000234"
codes.national_parkstring | nullOfficial 9-character GSS code for this National Park.null
codes.buastring | nullBuilt-up Area (2022) code."E34004786"
codes.icbstring | nullOfficial 9-character GSS code for this Integrated Care Board."E54000027"
codes.cancer_alliancestring | nullOfficial 9-character GSS code for this Cancer Alliance."E56000009"
codes.lsoa11string | nullOfficial 9-character GSS code for this 2011 Census LSOA. Alias for codes.lsoa."E01004736"
codes.msoa11string | nullOfficial 9-character GSS code for this 2011 Census MSOA. Alias for codes.msoa."E02000977"
codes.lsoa21string | nullOfficial 9-character GSS code for this 2021 Census LSOA."E01004736"
codes.msoa21string | nullOfficial 9-character GSS code for this 2021 Census MSOA."E02000977"
codes.oa21string | null2021 Census Output Area code."E00004185"
codes.ruc11string | null2011 Census Rural-Urban Classification code."A1"
codes.ruc21string | null2021 Census Rural-Urban Classification code."A1"
codes.lep1string | nullOfficial 9-character GSS code for the primary Local Enterprise Partnership."E37000051"
codes.lep2string | nullOfficial 9-character GSS code for the secondary Local Enterprise Partnership.null
codes.parliamentary_constituency_2024string | nullOfficial 9-character GSS code for this Parliamentary Constituency based on July 2024 boundaries."E14000639"

Positional Quality

Quality ValueDescription
1Within the actual building (most accurate)
2Same as 1, but verified by Landline maps (Scotland only)
3Approximate location within 50m
4Postcode unit mean (averaged from addresses with same postcode)
5Estimated by ONS using surrounding postcodes
6Postcode sector mean (mainly PO Boxes)
8Historical postcode (pre-Gridlink®)
9No grid reference available
diff --git a/build/docs/scottish-postcode/lookup/index.html b/build/docs/scottish-postcode/lookup/index.html index 9e309436f..046b15d28 100644 --- a/build/docs/scottish-postcode/lookup/index.html +++ b/build/docs/scottish-postcode/lookup/index.html @@ -4,7 +4,7 @@ Lookup a Scottish Postcode | Postcodes.io - + @@ -21,6 +21,6 @@

Example Re
GET https://api.postcodes.io/scotland/postcodes/AB101XG

The above would match any of these inputs: "AB10 1XG", "ab101xg", "Ab10 1Xg", etc.

Example Response

-
{
"status": 200,
"result": {
"postcode": "AB10 1XG",
"pc_compact": "AB101XG",
"postcode_district": "AB10",
"postcode_sector": "AB10 1",
"incode": "1XG",
"outcode": "AB10",
"user_type": "0",
"date_of_introduction": "198001",
"date_of_deletion": null,
"linked_small_user_postcode": null,
"longitude": -2.10250,
"latitude": 57.14945,
"eastings": 393859,
"northings": 806073,
"split_indicator": "0",
"grid_link_indicator": "1",
"grid_link_positional_accuracy": "1",
"council_area": "Aberdeen City",
"electoral_ward": "Midstocket/Rosemount",
"registration_district": "RD20",
"enterprise_region": "Highlands and Islands",
"strategic_development_planning_area": "SD01",
"local_government_district": "Aberdeen City",
"local_government_district_1991": "City of Aberdeen",
"uk_parliamentary_constituency": "Aberdeen South",
"scottish_parliamentary_region": "North East Scotland",
"scottish_parliamentary_constituency": "Aberdeen Central",
"health_board_area": "Grampian",
"health_board_area_2006": "Grampian",
"health_board_area_1995": "Grampian",
"integration_authority": "Aberdeen City",
"output_area": "S00136537",
"output_area_2011": "S00088970",
"output_area_2001": "S00000700",
"output_area_1991": null,
"data_zone": "West End North - 01",
"data_zone_2011": "S01006571",
"data_zone_2001": "S01000125",
"intermediate_zone": "West End North",
"intermediate_zone_2011": "S02000007",
"intermediate_zone_2001": "S02000017",
"locality": "Aberdeen",
"locality_2020": "Aberdeen",
"locality_2001": "Aberdeen",
"locality_1991": null,
"settlement": "Aberdeen, Milltimber, and Peterculter",
"settlement_2020": "Aberdeen Settlement",
"settlement_2001": "Aberdeen Settlement",
"civil_parish": "Old Machar",
"island": "Mainland of Scotland",
"national_park": null,
"travel_to_work_area": "Aberdeen",
"lau_level_1": "Aberdeen City",
"itl_level_2": "North Eastern Scotland",
"itl_level_3": "Aberdeen City and Aberdeenshire",
"urban_rural_6_fold": "1",
"urban_rural_8_fold": "1",
"scottish_index_of_multiple_deprivation": 6414,
"roa_community_planning_partnership": "Aberdeen City",
"roa_local": "Aberdeen City",
"census_household_count": 0,
"census_household_count_2011": 8,
"census_household_count_2001": 12,
"census_household_count_1991": null,
"census_population_count": 0,
"census_population_count_2011": 18,
"census_population_count_2001": 26,
"census_population_count_1991": null,
"never_digitised": false,
"codes": {
"council_area": "S12000033",
"electoral_ward": "S13002841",
"enterprise_region": "S99999999",
"local_government_district": "S12000033",
"local_government_district_1991": "S99999999",
"uk_parliamentary_constituency": "S14000061",
"scottish_parliamentary_region": "S17000016",
"scottish_parliamentary_constituency": "S16000094",
"health_board_area": "S08000020",
"health_board_area_2006": "S08000006",
"health_board_area_1995": "0",
"integration_authority": "S37000002",
"data_zone": "S01013550",
"data_zone_2011": "S01006571",
"data_zone_2001": "S01000125",
"intermediate_zone": "S02002527",
"intermediate_zone_2011": "S02000007",
"intermediate_zone_2001": "S02000017",
"locality": "S19000001",
"settlement": "S20000001",
"civil_parish": "S07000001",
"island": "S20000001",
"national_park": null,
"travel_to_work_area": "S22000047",
"lau_level_1": "TLM50",
"itl_level_2": "TLM5",
"itl_level_3": "TLM50",
"registration_district": "RD20",
"strategic_development_planning_area": "SD01",
"roa_community_planning_partnership": "S12000033",
"roa_local": "S12000033"
}
}
}
+
{
"status": 200,
"result": {
"postcode": "AB10 1XG",
"pc_compact": "AB101XG",
"postcode_district": "AB10",
"postcode_sector": "AB10 1",
"incode": "1XG",
"outcode": "AB10",
"user_type": "0",
"date_of_introduction": "198001",
"date_of_deletion": null,
"linked_small_user_postcode": null,
"longitude": -2.10250,
"latitude": 57.14945,
"eastings": 393859,
"northings": 806073,
"split_indicator": "0",
"grid_link_indicator": "1",
"grid_link_positional_accuracy": "1",
"council_area": "Aberdeen City",
"electoral_ward": "Midstocket/Rosemount",
"registration_district": "RD20",
"enterprise_region": "Highlands and Islands",
"strategic_development_planning_area": "SD01",
"local_government_district": "Aberdeen City",
"local_government_district_1991": "City of Aberdeen",
"uk_parliamentary_constituency": "Aberdeen South",
"scottish_parliamentary_region": "North East Scotland",
"scottish_parliamentary_region_2021": "North East Scotland",
"scottish_parliamentary_constituency": "Aberdeen Central",
"scottish_parliamentary_constituency_2021": "Aberdeen Central",
"health_board_area": "Grampian",
"health_board_area_2006": "Grampian",
"health_board_area_1995": "Grampian",
"integration_authority": "Aberdeen City",
"output_area": "S00136537",
"output_area_2011": "S00088970",
"output_area_2001": "S00000700",
"output_area_1991": null,
"data_zone": "West End North - 01",
"data_zone_2011": "S01006571",
"data_zone_2001": "S01000125",
"intermediate_zone": "West End North",
"intermediate_zone_2011": "S02000007",
"intermediate_zone_2001": "S02000017",
"locality": "Aberdeen",
"locality_2020": "Aberdeen",
"locality_2001": "Aberdeen",
"locality_1991": null,
"settlement": "Aberdeen, Milltimber, and Peterculter",
"settlement_2020": "Aberdeen Settlement",
"settlement_2001": "Aberdeen Settlement",
"civil_parish": "Old Machar",
"island": "Mainland of Scotland",
"national_park": null,
"travel_to_work_area": "Aberdeen",
"lau_level_1": "Aberdeen City",
"itl_level_2": "North Eastern Scotland",
"itl_level_3": "Aberdeen City and Aberdeenshire",
"urban_rural_6_fold": "1",
"urban_rural_8_fold": "1",
"scottish_index_of_multiple_deprivation": 6414,
"roa_community_planning_partnership": "Aberdeen City",
"roa_local": "Aberdeen City",
"census_household_count": 0,
"census_household_count_2011": 8,
"census_household_count_2001": 12,
"census_household_count_1991": null,
"census_population_count": 0,
"census_population_count_2011": 18,
"census_population_count_2001": 26,
"census_population_count_1991": null,
"never_digitised": false,
"codes": {
"council_area": "S12000033",
"electoral_ward": "S13002841",
"enterprise_region": "S99999999",
"local_government_district": "S12000033",
"local_government_district_1991": "S99999999",
"uk_parliamentary_constituency": "S14000061",
"scottish_parliamentary_region": "S17000026",
"scottish_parliamentary_region_2021": "S17000014",
"scottish_parliamentary_constituency": "S16000151",
"scottish_parliamentary_constituency_2021": "S16000074",
"health_board_area": "S08000020",
"health_board_area_2006": "S08000006",
"health_board_area_1995": "0",
"integration_authority": "S37000002",
"data_zone": "S01013550",
"data_zone_2011": "S01006571",
"data_zone_2001": "S01000125",
"intermediate_zone": "S02002527",
"intermediate_zone_2011": "S02000007",
"intermediate_zone_2001": "S02000017",
"locality": "S19000001",
"settlement": "S20000001",
"civil_parish": "S07000001",
"island": "S20000001",
"national_park": null,
"travel_to_work_area": "S22000047",
"lau_level_1": "TLM50",
"itl_level_2": "TLM5",
"itl_level_3": "TLM50",
"registration_district": "RD20",
"strategic_development_planning_area": "SD01",
"roa_community_planning_partnership": "S12000033",
"roa_local": "S12000033"
}
}
}
\ No newline at end of file diff --git a/build/docs/scottish-postcode/schema/index.html b/build/docs/scottish-postcode/schema/index.html index 4fd7f2921..82d26fef0 100644 --- a/build/docs/scottish-postcode/schema/index.html +++ b/build/docs/scottish-postcode/schema/index.html @@ -4,7 +4,7 @@ Scottish Postcode Schema | Postcodes.io - + @@ -13,15 +13,16 @@

Scottish Postcode Schema

The Scottish Postcode schema represents the full set of geographies the Scottish Postcode Directory (SPD) ships against a postcode: administrative, electoral, health, statistical, and census. It is returned by the /scotland/postcodes/:postcode endpoint.

Top-level fields hold the canonical (latest) value for each datapoint. Year-suffixed fields surface prior versions where SPD publishes them (e.g. data_zone is the 2022 Data Zone; data_zone_2011 and data_zone_2001 are historical baselines). The codes object mirrors the same datapoints with their GSS / official codes.

+
Scottish Parliament 2025 boundaries

scottish_parliamentary_constituency and scottish_parliamentary_region now hold the 2025 designation (Second Review of Scottish Parliament Boundaries, SSI 2025/285), which took effect at the 7 May 2026 Holyrood election - boundaries and names changed. The superseded 2021 values moved to scottish_parliamentary_constituency_2021 and scottish_parliamentary_region_2021. Consumers pinned to the 2021 boundaries should read the _2021 fields.

Example

-
{
"status": 200,
"result": {
"postcode": "AB10 1XG",
"postcode_district": "AB10",
"postcode_sector": "AB10 1",
"incode": "1XG",
"outcode": "AB10",
"user_type": "0",
"date_of_introduction": "199406",
"date_of_deletion": null,
"longitude": -2.10250,
"latitude": 57.14945,
"eastings": 393859,
"northings": 806073,
"council_area": "Aberdeen City",
"electoral_ward": "Midstocket/Rosemount",
"uk_parliamentary_constituency": "Aberdeen South",
"scottish_parliamentary_region": "North East Scotland",
"scottish_parliamentary_constituency": "Aberdeen Central",
"health_board_area": "Grampian",
"integration_authority": "Aberdeen City",
"data_zone": "West End North - 01",
"data_zone_2011": "S01006571",
"intermediate_zone": "West End North",
"output_area": "S00136537",
"locality": "Aberdeen",
"settlement": "Aberdeen, Milltimber, and Peterculter",
"civil_parish": "Old Machar",
"island": "Mainland of Scotland",
"national_park": null,
"travel_to_work_area": "Aberdeen",
"lau_level_1": "Aberdeen City",
"itl_level_2": "North Eastern Scotland",
"itl_level_3": "Aberdeen City and Aberdeenshire",
"urban_rural_6_fold": "1",
"urban_rural_8_fold": "1",
"scottish_index_of_multiple_deprivation": 6414,
"census_household_count": 0,
"census_population_count": 0,
"codes": {
"council_area": "S12000033",
"electoral_ward": "S13002841",
"uk_parliamentary_constituency": "S14000061",
"scottish_parliamentary_region": "S17000016",
"scottish_parliamentary_constituency": "S16000094",
"health_board_area": "S08000020",
"integration_authority": "S37000002",
"data_zone": "S01013550",
"intermediate_zone": "S02002527",
"locality": "S19000001",
"settlement": "S20000001",
"civil_parish": "S07000001",
"national_park": null,
"travel_to_work_area": "S22000047"
}
}
}
+
{
"status": 200,
"result": {
"postcode": "AB10 1XG",
"postcode_district": "AB10",
"postcode_sector": "AB10 1",
"incode": "1XG",
"outcode": "AB10",
"user_type": "0",
"date_of_introduction": "199406",
"date_of_deletion": null,
"longitude": -2.10250,
"latitude": 57.14945,
"eastings": 393859,
"northings": 806073,
"council_area": "Aberdeen City",
"electoral_ward": "Midstocket/Rosemount",
"uk_parliamentary_constituency": "Aberdeen South",
"scottish_parliamentary_region": "North East Scotland",
"scottish_parliamentary_region_2021": "North East Scotland",
"scottish_parliamentary_constituency": "Aberdeen Central",
"scottish_parliamentary_constituency_2021": "Aberdeen Central",
"health_board_area": "Grampian",
"integration_authority": "Aberdeen City",
"data_zone": "West End North - 01",
"data_zone_2011": "S01006571",
"intermediate_zone": "West End North",
"output_area": "S00136537",
"locality": "Aberdeen",
"settlement": "Aberdeen, Milltimber, and Peterculter",
"civil_parish": "Old Machar",
"island": "Mainland of Scotland",
"national_park": null,
"travel_to_work_area": "Aberdeen",
"lau_level_1": "Aberdeen City",
"itl_level_2": "North Eastern Scotland",
"itl_level_3": "Aberdeen City and Aberdeenshire",
"urban_rural_6_fold": "1",
"urban_rural_8_fold": "1",
"scottish_index_of_multiple_deprivation": 6414,
"census_household_count": 0,
"census_population_count": 0,
"codes": {
"council_area": "S12000033",
"electoral_ward": "S13002841",
"uk_parliamentary_constituency": "S14000061",
"scottish_parliamentary_region": "S17000026",
"scottish_parliamentary_region_2021": "S17000014",
"scottish_parliamentary_constituency": "S16000151",
"scottish_parliamentary_constituency_2021": "S16000074",
"health_board_area": "S08000020",
"integration_authority": "S37000002",
"data_zone": "S01013550",
"intermediate_zone": "S02002527",
"locality": "S19000001",
"settlement": "S20000001",
"civil_parish": "S07000001",
"national_park": null,
"travel_to_work_area": "S22000047"
}
}
}

Reference

Identity & spatial

FieldTypeDescriptionExample
postcodestringRoyal Mail postcode (canonical formatting with single space)."AB10 1XG"
pc_compactstringPostcode with all spaces removed."AB101XG"
postcode_districtstringEquivalent to the outward code."AB10"
postcode_sectorstringOutward code plus the first character of the inward code."AB10 1"
outcode / incodestringOutward / inward halves of the postcode."AB10" / "1XG"
user_typestring | nullSPD user type ("0" = small user, "1" = large user)."0"
date_of_introductionstring | nullDate the postcode was introduced (YYYYMM)."199406"
date_of_deletionstring | nullDate the postcode was deleted (YYYYMM); null for live postcodes.null
linked_small_user_postcodestring | nullFor large-user postcodes, the linked small-user postcode (if any).null
longitude / latitudenumber | nullWGS84 coordinates.-2.10250
eastings / northingsinteger | nullOS National Grid grid reference (1m resolution).393859
split_indicatorstring | nullMarks postcodes that span more than one administrative unit."0"
grid_link_indicatorstring | nullHow the postcode was linked to its grid reference."1"
grid_link_positional_accuracystring | nullPositional accuracy of the grid reference."1"
never_digitisedbooleanTrue if the postcode has never been digitised (no grid reference established).false

Administrative geographies

FieldTypeDescriptionExample
council_areastring | null2019 council area name (current unitary authority)."Aberdeen City"
electoral_wardstring | null2022 electoral ward name."Midstocket/Rosemount"
local_government_districtstring | null1995 local government district name (pre-unitary boundary)."Aberdeen City"
local_government_district_1991string | null1991 local government district name (historical)."City of Aberdeen"
enterprise_regionstring | null2008 enterprise region name."Highlands and Islands"
registration_districtstring | null2007 registration district code. (SPD provides codes only — no names.)"RD20"
strategic_development_planning_areastring | null2013 SDPA code."SD01"
civil_parishstring | null1930 Scottish civil parish name (latest historical baseline)."Old Machar"
islandstring | nullIsland name; "Mainland of Scotland" for non-island postcodes."Mainland of Scotland"
national_parkstring | null2010 national park name (Cairngorms / Loch Lomond and the Trossachs).null

Parliamentary

-
FieldTypeDescriptionExample
uk_parliamentary_constituencystring | null2024 UK Parliamentary constituency."Aberdeen South"
scottish_parliamentary_regionstring | null2021 Scottish Parliamentary region."North East Scotland"
scottish_parliamentary_constituencystring | null2021 Scottish Parliamentary constituency."Aberdeen Central"
+
FieldTypeDescriptionExample
uk_parliamentary_constituencystring | null2024 UK Parliamentary constituency."Aberdeen South"
scottish_parliamentary_regionstring | null2025 Scottish Parliamentary region (current; SSI 2025/285, 7 May 2026 election)."North East Scotland"
scottish_parliamentary_region_2021string | null2021 Scottish Parliamentary region (superseded)."North East Scotland"
scottish_parliamentary_constituencystring | null2025 Scottish Parliamentary constituency (current; SSI 2025/285, 7 May 2026 election)."Aberdeen Central"
scottish_parliamentary_constituency_2021string | null2021 Scottish Parliamentary constituency (superseded)."Aberdeen Central"

Health

FieldTypeDescriptionExample
health_board_areastring | null2019 NHS health board area (operational)."Grampian"
health_board_area_2006string | null2006 health board area (historical)."Grampian"
health_board_area_1995string | null1995 health board area (historical)."Grampian"
integration_authoritystring | null2019 health and social care integration authority."Aberdeen City"

Statistical & census

diff --git a/build/docs/self-host/index.html b/build/docs/self-host/index.html index e0b0e1fcd..ab79e4c0d 100644 --- a/build/docs/self-host/index.html +++ b/build/docs/self-host/index.html @@ -4,7 +4,7 @@ Self Host (Docker) | Postcodes.io - + diff --git a/build/docs/terminated-postcode/lookup/index.html b/build/docs/terminated-postcode/lookup/index.html index 7ec702d0d..67d9d0f35 100644 --- a/build/docs/terminated-postcode/lookup/index.html +++ b/build/docs/terminated-postcode/lookup/index.html @@ -4,7 +4,7 @@ Lookup a Terminated Postcode | Postcodes.io - + diff --git a/build/docs/terminated-postcode/schema/index.html b/build/docs/terminated-postcode/schema/index.html index f3e52b998..d1bc08f2d 100644 --- a/build/docs/terminated-postcode/schema/index.html +++ b/build/docs/terminated-postcode/schema/index.html @@ -4,7 +4,7 @@ Terminated Postcode Response Schema | Postcodes.io - + diff --git a/build/endpoints/index.html b/build/endpoints/index.html index 734ecc4a9..61246dddf 100644 --- a/build/endpoints/index.html +++ b/build/endpoints/index.html @@ -4,7 +4,7 @@ Endpoints | Postcodes.io - + diff --git a/build/index.html b/build/index.html index 0463197c9..d585f9cb9 100644 --- a/build/index.html +++ b/build/index.html @@ -4,7 +4,7 @@ Postcode & Geolocation API for the UK | Postcodes.io - + diff --git a/build/openapi.json b/build/openapi.json index 54797f42c..fcb1f6b31 100644 --- a/build/openapi.json +++ b/build/openapi.json @@ -755,8 +755,8 @@ "title": "County", "type": "string", "nullable": true, - "description": "The administrative county for this postcode. May be empty for areas without county-level administration.", - "example": "" + "description": "The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`).", + "example": null }, "admin_district": { "title": "District", @@ -1660,17 +1660,31 @@ "example": "Aberdeen South" }, "scottish_parliamentary_region": { + "title": "Scottish Parliamentary Region (2025)", + "type": "string", + "nullable": true, + "description": "2025 Scottish Parliamentary region name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.", + "example": "North East Scotland" + }, + "scottish_parliamentary_region_2021": { "title": "Scottish Parliamentary Region (2021)", "type": "string", "nullable": true, - "description": "2021 Scottish Parliamentary region name.", + "description": "2021 Scottish Parliamentary region name (superseded by the 2025 designation).", "example": "North East Scotland" }, "scottish_parliamentary_constituency": { + "title": "Scottish Parliamentary Constituency (2025)", + "type": "string", + "nullable": true, + "description": "2025 Scottish Parliamentary constituency name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.", + "example": "Aberdeen Central" + }, + "scottish_parliamentary_constituency_2021": { "title": "Scottish Parliamentary Constituency (2021)", "type": "string", "nullable": true, - "description": "2021 Scottish Parliamentary constituency name.", + "description": "2021 Scottish Parliamentary constituency name (superseded by the 2025 designation).", "example": "Aberdeen Central" }, "health_board_area": { @@ -2023,18 +2037,33 @@ "example": "S14000061" }, "scottish_parliamentary_region": { + "title": "Scottish Parliamentary Region Code (2025)", + "type": "string", + "nullable": true, + "description": "9-character GSS code for the 2025 Scottish Parliamentary region (current designation).", + "example": "S17000026" + }, + "scottish_parliamentary_region_2021": { "title": "Scottish Parliamentary Region Code (2021)", "type": "string", "nullable": true, - "description": "9-character GSS code for the 2021 Scottish Parliamentary region.", - "example": "S17000016" + "description": "9-character GSS code for the superseded 2021 Scottish Parliamentary region.", + "example": "S17000014" }, "scottish_parliamentary_constituency": { + "title": "Scottish Parliamentary Constituency Code (2025)", + "type": "string", + "nullable": true, + "description": "9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation).", + "example": "S16000151", + "pattern": "^S[0-9]{8}$" + }, + "scottish_parliamentary_constituency_2021": { "title": "Scottish Parliamentary Constituency Code (2021)", "type": "string", "nullable": true, - "description": "9-character GSS code for the 2021 Scottish Parliamentary constituency.", - "example": "S16000094", + "description": "9-character GSS code for the superseded 2021 Scottish Parliamentary constituency.", + "example": "S16000074", "pattern": "^S[0-9]{8}$" }, "health_board_area": { diff --git a/build/openapi.yaml b/build/openapi.yaml index 673440098..7ba5a4582 100644 --- a/build/openapi.yaml +++ b/build/openapi.yaml @@ -657,8 +657,8 @@ components: title: County type: string nullable: true - description: The administrative county for this postcode. May be empty for areas without county-level administration. - example: '' + description: The administrative county for this postcode. Null where the postcode falls outside a county-level authority (the underlying GSS code is then a pseudo such as `E99999999`, surfaced under `codes.admin_county`). + example: null admin_district: title: District type: string @@ -1421,16 +1421,28 @@ components: description: 2024 UK Parliamentary constituency name. example: Aberdeen South scottish_parliamentary_region: + title: Scottish Parliamentary Region (2025) + type: string + nullable: true + description: 2025 Scottish Parliamentary region name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation. + example: North East Scotland + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region (2021) type: string nullable: true - description: 2021 Scottish Parliamentary region name. + description: 2021 Scottish Parliamentary region name (superseded by the 2025 designation). example: North East Scotland scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency (2025) + type: string + nullable: true + description: 2025 Scottish Parliamentary constituency name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation. + example: Aberdeen Central + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency (2021) type: string nullable: true - description: 2021 Scottish Parliamentary constituency name. + description: 2021 Scottish Parliamentary constituency name (superseded by the 2025 designation). example: Aberdeen Central health_board_area: title: Health Board Area (2019) @@ -1742,17 +1754,30 @@ components: description: 9-character GSS code for the 2024 UK Parliamentary constituency. example: S14000061 scottish_parliamentary_region: + title: Scottish Parliamentary Region Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary region (current designation). + example: S17000026 + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary region. - example: S17000016 + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary region. + example: S17000014 scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation). + example: S16000151 + pattern: ^S[0-9]{8}$ + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary constituency. - example: S16000094 + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary constituency. + example: S16000074 pattern: ^S[0-9]{8}$ health_board_area: title: Health Board Area Code (2019) diff --git a/docs/api/bulk-postcode-lookup.api.mdx b/docs/api/bulk-postcode-lookup.api.mdx index fe6be12be..a6a911232 100644 --- a/docs/api/bulk-postcode-lookup.api.mdx +++ b/docs/api/bulk-postcode-lookup.api.mdx @@ -5,7 +5,7 @@ description: "Accepts a JSON object containing an array of postcodes. Returns a sidebar_label: "Bulk Postcode Lookup" hide_title: true hide_table_of_contents: true -api: eJztPO1S4zi2r3LK84NwKwlOgO4m+2OXphmGGb6WhGJnhylQbCXRIEseSYbOdlF1H+I+4X2SW0eyHdtxEpJu+t5btV01Q2JLR+dLOp/RF8+QsfZ6v3lXUptAhhT+nlA19X5vejKmihgmxWno9byPCX+EfNCZlI9J7DW9kOpAsRiHeT3vMAhobDQQ+Ll/eQFy+AcNDARSGMIEE2MgAohSZApyBHEKTLfhmppECZzHmTb4MiImmOCMfBQQEYKiOqaBYU8UyBNhnAw5hZAY0r4Td+IjBZ0oCkaCToYRMw4NRf9MqDYaNDUGYT4cSWGoMK3BNKYPOPyBxDFngSV35w8txYMFmNGTxDio4/sFpPH9Dz/8YHkCn4gh+GAwYRoiaiYytMsyRdflBq40pPY7DZtA22O71MPDA+J1J77cCYA7Lx9/5/Xgtzvv6noX/P7JndeEO+98bx/enVy4L8f/6LyD/Y9nd97vd+LFQnK4g5XpNX2iSlM4oTKQIRNjy0l8YxQRmhNDNYyp5NKxRwMTRuaqoNswz6Xi8Pad8JpeTBSJqKEKle33poeClEJT7fW+eF3fxz9lXeonQUC19ppe4KSFQ6piwmc6mNCI4CfDDKdeb6bL1+kqXtMz0xhfOSF4iICVToi6rw0xibYPdcINKn+sUP0NcwimA3AJB4YJQ8dUeU1vJFVEjHu02/WaHhVJ5PV+6/r+7y85xDnqjmQUKzqhQqMuZ8yyqgxMBDxB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aYd3XBtAyE2Q4YGl5qk5Z08RMgJhhjjOjSoCIbltWZ6HKhAxXRzyKozCXltMU+ZAp/acDoep/8J/84d1r44tnc/OajG/WcpIrrjLBUSVhllxEdHlwShudn/cviBqiW/+qVxVLrcXa5EP7Qgz93DdQPPxQ3CVn8fsDCcd67hRDi/KYCvNAJ70BIDPU//HR5eU71qNTmF4v4SxaQW3gn1HmBGV3VwakVGi//wep5m4ZZfw1SA7azBwwGLMrn4eNteowFoCHGqET1Tj6bdBa4MdrQCrM4oZCl1fnCUV4xLOgb6GiSswF/L40ZUM8ifFhRmKIUlZWHqLY9He+vgqILsHyFg8dM4D6waZJo4/4mIs5kcyrfULfSe6rQ0Nbp+2Ez22futM0MaIDHNr6LmSptw9fcZ/ZlevXUv682+/fVZs9cbZZ5L45/dpuJZIJaNEhBv2RmaHqFFl2ANEYT1fst+PIF80xXRj494eM/6eI9uh0ttzD47akRjDmLuCG7dc8nhTKSKZIpLj5zL1rFJuKhFzw9/Q8TBmkx sidebar_class_name: "post api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -81,7 +81,7 @@ Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations. diff --git a/docs/api/find-outcode.api.mdx b/docs/api/find-outcode.api.mdx index ad4bf78f4..ab69d93b2 100644 --- a/docs/api/find-outcode.api.mdx +++ b/docs/api/find-outcode.api.mdx @@ -5,7 +5,7 @@ description: "Returns aggregated information for postcodes grouped by their shar sidebar_label: "Find an Outward Code" hide_title: true hide_table_of_contents: true -api: eJzlWFtvG7cS/isDFjixgdVKVuw0FVC0ruumSdPYsBz4wTLq0e5olw2X3JJcO4Kh/34w3ItWkmO4OXk7frGWl5lvht8MZ/ggPGZOTK7FWeXv0aZwYlJy4iYSKbnEytJLo8VEXJCvrHaAWWYpQ08pSL0wtkBeAAtjoTTOJ7wbMmuqklKYL8HnJC24HC2lYBodvCqe6Zm+zGljEKTjHbCQ1nnIUS3ALAD1shMOey8Hh5DkaDHxZB2gTmFhl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jS6lYxvdSE0+jsm+t02brh2LsclWtcRIMbhEk12oCk6UBDfbleX7+akMd5XdliwQXFgfVlqY37j0iRy/31+SY69p+pYKlDZ1ov2wmfJ7cNG6GMkj3NFVz1wpBea+i8+i9Z29GwWj9o/L88aTVXvMMvblhKLijZ195eNcm1e1Kg5DFpW/e7iOXaOpperebc4rWRVUXD4Z2KTW7v1okzZOBUWPqddq9QX3X93mXznjGAf/o29qQ5bXmjliGZS09fLGKfcdl7oquomMqRp2gC3nr2OKSX3r6dd66NW+nd6RWrqv8Cn1dZBQ== sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -65,7 +65,7 @@ The outward code is the first half of any postcode (3-4 characters and followed diff --git a/docs/api/get-scottish-postcode.api.mdx b/docs/api/get-scottish-postcode.api.mdx index 7c4e6e2dd..5cfc225e8 100644 --- a/docs/api/get-scottish-postcode.api.mdx +++ b/docs/api/get-scottish-postcode.api.mdx @@ -5,7 +5,7 @@ description: "Lookup a Scottish postcode." sidebar_label: "Lookup Scottish Postcode" hide_title: true hide_table_of_contents: true -api: eJztXP1u4ziSf5WC9oBJFrIj2/n0YbCXSXq7s5N0gjjZudlOn5uWaJsbmdSQVLqzgYF7h33DfZJDkfqW/BE7fQccpv/pmKLIX5FVRbLqJ744mkyU0//kDHyhNVNTuBFK+yKgyvnsOgFVvmSRZoI7fedSiMc4AgJZ5Sip3H7gD/yW6lhyBbWm4JxJ6mshn2FncHO+CwHRBIhSwmdE0wC+Mj0FPaV5e3A3pSCpigRXFHzxRKUyNcZxGMLg5hzGjIYBKKr74IuY+ywEIilxgYamLxLCVyIDN4dDeAD3P0NEZMjIjHJN5DNMqJhIEk0ZVS5MKQn1FEbCvMi4phNJUHggsZ4KyfSza8H/Q3Bqa8gZDVCKpEjEOop1AiUUPgnNS4pqHVLs1AWfPbEQYTA1dYGpkPDABW46IubBowtakicatrRofRXyMWnv4u5y7/L03oVYjghvyRil9EOiFBsz3zTgwuDi6hwk4Y8u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1HpsjMpvb22aPVUeJ7S69PaEAbT5Ht1rZvuf3e87ntsa+t1+/MS67GQo/dR/jV28O1v3WwsKB6cxeBBgSPnH6zlTryFz4NqIhZgRvLvCuNXM/YfJU9ff2SMTa+RE2E3sq4XbtZaV753/tHv3lp3sk6GWt+7a9tPV3F+fF1v1YhtD6AK0HuL+/560W/v7h9X3+gJ1+cZ0Z1VOR3IRo0wVTp+80vfeS/jlHPFQ+ptcjxjJcInbtBOX0+hwG5nXHdR6JZKgSeBpirjFkfCxwhpKLMJGwc9z22h6OCMOzJ7MRSG5kvDy/ddxK/yKi3I5WW8jJXvKS2sO6BRVBFDfZaVErvwrWQsbYVF2NEScrzWppdAPhq6yHhVfJYVVk1RIYS1o4zgrtFbOIBGOaCRVYLDMbuPvZXND5hz/gFyfmClH8eYpX0llYCnzCkUhBDDMM7xSVYmavKRNhKJ7Qrmnyrmnr69ev93zRTCWP7zky/gwq36eRVvDh/a1ls18NbtP7ElXb/rT6o/BOMUiulQRzI9nX6s2SX1Np0qsjFf5+j3ekFi6/xVsn7NV73F5OE0mzQ/h4e3sNA3NZZEIPo98QnRmtvwyuPl1nyMyXyVThp4t+GAfGmZhqyl6A6cJ+UkBgRIL0PSzeTxi/iRswUh+kbxudtbeYWlZkDRNOcqhE2rG5LkMXL/cdieA5HQZMn2AUa4cIC0sKk93gmlw9aXxgXt9eZoojntx4SGeEoR0ggUZI/W8soCRs5fPri3b8gE7Yms7AVquZT+Nre0mjxi3isxnhBTNM7kquXbxZtYiX/OLR3+9X/v1+5d/vV/7/eL9yEvRp+k3vRSFh9pIZaQJGG118dtLowskv7MTls59djPjFdaZCaaz78oIf19zJcD7HYnt5cv/zlzx2MEFIwBT+HWSXJS/0PDs3yV2+u/CKy5obxUoKCX82oUwY4y/HdR7oc/G+6PkXewAQUGmw2senZnUtvFi7irkUn314f+vM5/8DFJMxpQ== sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -73,7 +73,7 @@ Source: Scottish Postcode Directory (National Records of Scotland). diff --git a/docs/api/lookup-postcode.api.mdx b/docs/api/lookup-postcode.api.mdx index 64eeba987..cdb1df810 100644 --- a/docs/api/lookup-postcode.api.mdx +++ b/docs/api/lookup-postcode.api.mdx @@ -5,7 +5,7 @@ description: "### Postcode Data" sidebar_label: "Lookup Postcode" hide_title: true hide_table_of_contents: true -api: eJztXOty27iSfpUu5oflPZIsyXYSa/+s43gcz/i2ll3enDhlQyQkYgwCHACUo025ah9in3CfZKsBkiIpSraUOHupk6oZSyQu3Q00+uuL8N0zZKy9/hfvQmrjy4Bq72vTkzFVxDApjgOv751I+ZDEWQOv6QVU+4rF2MDre2/evIHsJXwkhtyKW+H6AIHrPyDOXpIxYUIbMCGF87NBoRdT1DdSTaFxfja4+LjZhquQgqI6lkJTYBoIjBLOp/hM8gkNQFFfqgD+6z/+E+iEqimQIGKCaYOUT2gTKLdjEt4EbYhh2jCfcCAigJASbkIYUzlWJA6nYEJiwE4NOmSxhpFUlsycdqZBUZMoQQMgjgUjY+B0QjkMp8CMhjCJiGgpSgIy5BQEiWgTHpkJbXP6V8ImhFNh4GgwgC2QoxHzGeFg5Q4RU0oqGkAiAupmv7dv7kEO/6S+aaNgUS6aRBR0SOIyWcMp3G9lBOt7aAwT/gB/A02J8sNNy7mxYp1QpWlrTKUvAybGQEUQSyaMbsP9lkyyAdzIKHtNY6KIoU0g47GiY2JoAF/OXcuvjTeGjLfOE/NIVNA6wM6bKX24PFJQUPIRYqpAukaW5VQ2dt1gC2KimA5hC3wptGEmocKfAlGKTDXoJIrwPVJbXBcNTGgWUCuby5Te+53Ozj2wUXkFA0k1CGmAfmPagFQoPPw+IZwF7VvhNT3kMqKGKtSJ7x6uoNf34tnWZ7jjY2LCOTXIN7ORKDjF6AQ7KFx2RQOvb1RCm542U45jahbFHBvQbzHHsfsjwjU28EMaEa//3TPM2KYLNa845V8JVVM7HLED973BTXcfevv73tPTV6TD6ZLGkXudDv4pjzZIfJ9q7TU9XwpDh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7mI16b+ZWmLeYv/9ITIqHoRwZP71/S+tfD7wPZwl7JwIsZe3wuNiW3kckg5pq0uT/B6BpkoNIX2re5vbZGYteNCpH12P84W/sy+t79/ixmefFTfjZONenByXBzVTxSH1hG0HuD29la0Wvh94+VzbeBkX5teRE0o8WqlMTU2impCr+8V2n/PPj7ZOyfUJLuRJlF8CXdzgfv9i2Mbk7flchOiGK4yhhjsnTB4WQnuGFu7Y9t337c77Q4KgGGe1oKK9BKc0+Mrr1mZX8ZUOOG0pRpvpZ30FrYtrCpScZlXsbdKqQ/cjVRF+nyU5g4Kw5eEGUhf5zMsvArHZlPcdVGKFqqNubuPCilBqO6uPsqDSmm65la8eQOH6V1INlvE+axS3ScCC/aJvSUn++U89p3lj7J7lOxY9/f3t2LRSqWv3X1OliofbwPQcHR4ZSm8OB9cZTfH6Lb76raNthW86R09+HsJCvfVa3ruM26yC3k0fj8kfji7VMuXUfaDfyKwClDJWNkygk9XVxc2rZPo7H4Od1cBSuv3wfnZRU6Zu6nLVhTjHTqYhO7YZtrdJtSEnfQBgSEJsn74eMc+xjzKCF09y/Vu1tvuWaB4I5a7C2yOJlxkrmU2cZAl3nL+hjKYZmLAnx1jINGJCB+WNkye0UmzLDZFPGvv7oZCiROXKKARYagHOoljqcy/sIAS3pqtry/byYNNdFjVGbhmc+pT220rHdTD0w/fRUQU1DC9WG3RnVDfZ5c3/eNitn9czPb/5mK2FLEY+s1sxZwwW5Zhtel7aj5n12ahdejn1xx9bXqhxB+KfvG+f8c407XiT0/42F2Z1v/ydWYarY0NmMbPQX4l20INa1ymWdlNWHD9Wy3d6UMiptYq8wS/eU3vgU6Lt8094X1mISUBVZYu93rfGopCx7kr2koI4+jwynt6+m+Rkim/ sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -69,7 +69,7 @@ Returns `404` if the postcode does not exist or is not valid. diff --git a/docs/api/nearest-postcode.api.mdx b/docs/api/nearest-postcode.api.mdx index d38828280..4244eb5ee 100644 --- a/docs/api/nearest-postcode.api.mdx +++ b/docs/api/nearest-postcode.api.mdx @@ -5,7 +5,7 @@ description: "Returns a list of postcodes geographically nearest to the specifie sidebar_label: "Find the Nearest Postcodes" hide_title: true hide_table_of_contents: true -api: eJzVPO1SG7mWr3Kq7w/MljG2gSR4/ywhDGGGr8Vms3OHFJG7ZayJWuqR1IBviqp9iH3CfZKtI6k/3TbYCbm7qZrB7paOzjk6Ot/Wt8CQOx0M/ggupTahjKgOPrcDmVBFDJPiJAoGwTklimoD2ZCgHURUh4olOCQYBFfUpEpoIMCZNiAnkGTQ4I7KO0WSKQsJ5zMQHpaRYKYUdEJDNmE0yme0QaqIKhrBeAaJko8sZmYGrZBLjRMnTGmz2QnaQUIUiamhCvH/FggS02AQJAWSDHFLiJnOIfwfhLMIrn/LV0V8Uk2BaItWgTSEVBiqIJFMGJhIZd8XeGlKVIgLKPpXyhSNgoFRKW0H2sw44qNZnHDEhj4mHPEaTAjXOCCc0pgEg2+BYcYOLfGXPhI7bRAMP/UOoH9wEDw9fcZVdCKFphrn9btd/FMlbZiGIdU6aAehFIYKg0NIknAW2h3d/lPjuG8N69f3WcOVXy5oB2aW4Bg5/pOGpkLvH4E2xKTaPtQpNyhBiUIZMsxh6gfgWg4ME4beURW0g4lUMTHu0U4fSRdpHAz+6He7n59yiMVMohSZ4eYaGluIUtCLiZWAjI5jKrkMiaHRYpEdGiIiogq5A0cZ0EdDRUQjeGBmCgQipg0RIQVijGLj1NA2MBFZboo7mMoHmBAvFRkopmGiZAwEdIqcpxFKlMWJSYGySzjPkF7C15Isy7SQav/hr5RwZpAXlGhEBndASGWm/nMoU2EUDhBTfTsluG4UM3FrX8zyr0iiYnZ19+CBqChoB1yKO2ZSuxgnJvuYEMUZiakwRM1uQyk0vqIitKikuPFE3FJOQyMV4beK3iHPUSZYbKcQRW+NSrWjN3tLFNN4kriWiGrs/oQUUQnDOxwywScRMfRWTm6ZMEpGaWjc/OyxoSpmgvinTET0ER/HKTcs4fQ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v1XjbbyixQpaSyK8zjhJvMtcwWjrL6ZE7fWEazjA3462zMtzoW4cOKwOSFL6+JbSW9GN+xFy4gx4mrp9CYMDwHqHClMv/GIkr4VrG/oeykX209yB6doRs2d3wap217oAFqQXwXE1E6hr8w3+Izd7lV/Ux8Ky7M+iddaOYNj6GPZjvhhNmWA8uCb173FVdCIfqDkl3J1N/ndjCV+HPIP4Jv3zCbcq340xM+/iuleMHAH58LzWZVZMQ0fo7yi8kWcqV15Q3vJrzCBWqN1GeXfomZVcg8xW9BO/hKZ+W73qwdnVISUWVpcq8PrI4oTZy7Bq1iZI6PRsHT0/8C1g0fHw== sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -62,7 +62,7 @@ Returns a list of postcodes geographically nearest to the specified postcode, or diff --git a/docs/api/postcode-lookup.api.mdx b/docs/api/postcode-lookup.api.mdx index 19c8ea915..079304b86 100644 --- a/docs/api/postcode-lookup.api.mdx +++ b/docs/api/postcode-lookup.api.mdx @@ -5,7 +5,7 @@ description: "Query for a postcode either by:" sidebar_label: "Autocomplete Search a Postcode" hide_title: true hide_table_of_contents: true -api: eJztPItOI0mSvxKqlQ5zMsY2MN34NLqjaYZhhte2afXNTo8gXRW2czorsyYzC/C1kO4j7gvvS06RWW8bg00zuyftSLuNq/IRERkZ74qvgWUTEwx+DS6VsaGK0AS/tQOVoGaWK3kSBYPiFZwq9SVNgnYQoQk1T2hEMAj+mqKewVhpYJDkY5HbKWoYzQaf5We5BVdTLF9ya1CMoXXH7RRu/qD5399sgqLxbRp9ABNUQoUOCGjdCGa/vwEmI7gRSn5/s9mhVf/yF/B7u3VyMOnNMB3F3FbhcZu4FTSGyG8RGIQqTgRaBMGNBTUuR8fMhlM0bjwTApgxKuTMYlSOiZhlHbiacgPcgNV8MkGNEdxNURZI0SuTJongGDmY8/FoDErLmRCzKpgGmQ6ncDfl4RQSjWN+XwNGo021NMUEA1yCUZogUzpCDa2QGQQuDUrDLb/FzXLfGO1URQ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HWpNvp6qTc+N7bTrfTJYJwyok7Ay7rU3R2chW0G/sr6tbkiNRRerKdTTLbNLZygwiKD8UXA1u1NBPdfNSxuRhneZrK8jWiRio0xQ6Lui2UmSsK0MBYY6Wy23efAoKE3KIJKnqsixvpUmOuyeCRjNyXHC4zJ0T5VUDWp4q5tkB5lwKaW+bqMJvr1rq5ufksHzup7LXvsOigCqnzgoHjoysH4eXF8CqXE6bjf3peMa5aOmtKRN+mINw0+xLd5NjkDYgM/T5i1ASr7KwY580VmKSKS60S7Uo2fry6unQptNTkvVB8Xwii1k/Di/PLAjLXXQRd9XYo6HNIat7oOlv69klt2M0eMBixKJ9Hj3fdY8pZjcmtdljv5bMdzwJqrbTbYR4mOmRhVL5xtUOVx2+kollOBvrEm4K2ZcfIGsMU2bMso+XS8eV43+rRSXmflMGYcboH1AtSafsfjZ6anVB10i8uqeSuztAPm7s+C6dtZ4tSkzDXGCdmsnIND1Kriq6qWW82BpVmObV78bVsXvXPJrL/bCL7zyay/5BNZDPT1+K93U4E466+x4mKr5lBUPZfc92zpoq+Mv41+PqVgpQftXh4oMe+eSCZCRE3rmlh0TDwC84q3QXd9zTBIHCW0NzYRyXIKzaBXUgCD3TevHZNoL9ZR9dlIFaaJSwHMxtfdiP4OxzFczqbLkG26Mv6HExrTUufM6Foh1kO/q00XYPBr+SETZFFqB2n+1kHznqqzJpr1FiztY+ProKHh/8DITAmZg== sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -80,7 +80,7 @@ Returns nearest postcodes for a given longitude and latitude. This is triggered diff --git a/docs/api/random-postcode.api.mdx b/docs/api/random-postcode.api.mdx index 27db8ab30..67763b623 100644 --- a/docs/api/random-postcode.api.mdx +++ b/docs/api/random-postcode.api.mdx @@ -5,7 +5,7 @@ description: "Returns a randomly selected postcode along with comprehensive geog sidebar_label: "Get a Random Postcode" hide_title: true hide_table_of_contents: true -api: eJzVPO1y2ziSr9LF/WH5SpIl2U5i7Z9zHI/jGX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yLyqTzON62F23CPJzOLgBknMVjuOrWSHjdeXvZTWPqsl6i3Kw360tUiDus1rEa2P/srLFvMV/fkbPqHoRwbP71/S+tfD7wM5wN7RwIiZe3wuNiW3mckQ5lq2uz/B6BpkoNIX2re7v7JCYteNCpn3H3dWyU/ipsvfczIH6DkwG9OjstAjUTxSH1gm0HuDu7k60Wvh968VLbeFaX5peRE0o8aacCTU2h2pCr+/NDbe3TajH7GKaRPEldM2l7A+vTm023jbKPRLFcH8xuWBvg8FrSlBWbNeOHd991+60O0g7wwqtdSfSu3DOT4des7K+jKlwfGlLNdlJJ+kdHFvYT8TiOu9fb5WKHiiHVEX6cpxWDQrgS3wMpK/zFep++z+ro2C6AMaKFvqMuZQP6Ptdndpi34RKfKxyubWFmjvxt7/BsQjs7wpsnYjzWY+6TwS26hN7P072m3mcO6sc0XSuhfX169c7sWin0td3Amt9Fisf7wHQcHI8tBheXQ6G2Z0xuu2+OpHRtnc3vZ0HfylB4Wv1gp6vGTXZVTwavx8TP8yanxBClP3Unwjs/1MyVraB4ONweGULOonObuZwtxQgt34fXF5c5ZjZuy6o7SXG23Ow/Nyxw7S7R6gJe+kDAiMSZPPw8Z59jBWUMQZ5lur9bLaVWaBKSWVXmMcJN5lrmS0cZCW3nL6RDKYZG/AHx5hCdCzChyWByWs5aX3FFodn49v2DgHkOHElAhoRhudAJ3Eslfl3FlDCW7P99WU7ebAlDnt0Bm7Y3PGpnbaTAvVQ7+G7iIjCMTyh+JOQa3fX1KLrtb7PLm/6l7tpK7U6hn4zOzEnzJbWLV++p0rwc3p5mNf0ZmrwS9MLJf7S77P3/TsmCm4Uf37Gx+5WLlSOAdOo34L8zqyFTPlZd3bVEvNAp6W7w2wvvdf3rNrPlLDX/4wXVYWUBFRZ7N20Q6sHCrPm7t4qGY+T46H3/Py/zk6eSQ== sidebar_class_name: "get api-method" info_path: docs/api/api-reference-postcodes-io custom_edit_url: null @@ -62,7 +62,7 @@ Returns a randomly selected postcode along with comprehensive geographic, admini diff --git a/docs/scottish-postcode/lookup.mdx b/docs/scottish-postcode/lookup.mdx index 5c1242506..95678336f 100644 --- a/docs/scottish-postcode/lookup.mdx +++ b/docs/scottish-postcode/lookup.mdx @@ -57,7 +57,9 @@ The above would match any of these inputs: "AB10 1XG", "ab101xg", "Ab10 1Xg", et "local_government_district_1991": "City of Aberdeen", "uk_parliamentary_constituency": "Aberdeen South", "scottish_parliamentary_region": "North East Scotland", + "scottish_parliamentary_region_2021": "North East Scotland", "scottish_parliamentary_constituency": "Aberdeen Central", + "scottish_parliamentary_constituency_2021": "Aberdeen Central", "health_board_area": "Grampian", "health_board_area_2006": "Grampian", "health_board_area_1995": "Grampian", @@ -107,8 +109,10 @@ The above would match any of these inputs: "AB10 1XG", "ab101xg", "Ab10 1Xg", et "local_government_district": "S12000033", "local_government_district_1991": "S99999999", "uk_parliamentary_constituency": "S14000061", - "scottish_parliamentary_region": "S17000016", - "scottish_parliamentary_constituency": "S16000094", + "scottish_parliamentary_region": "S17000026", + "scottish_parliamentary_region_2021": "S17000014", + "scottish_parliamentary_constituency": "S16000151", + "scottish_parliamentary_constituency_2021": "S16000074", "health_board_area": "S08000020", "health_board_area_2006": "S08000006", "health_board_area_1995": "0", diff --git a/docs/scottish-postcode/schema.mdx b/docs/scottish-postcode/schema.mdx index df56eb039..1c0396414 100644 --- a/docs/scottish-postcode/schema.mdx +++ b/docs/scottish-postcode/schema.mdx @@ -7,6 +7,12 @@ The Scottish Postcode schema represents the full set of geographies the Scottish Top-level fields hold the **canonical (latest)** value for each datapoint. Year-suffixed fields surface prior versions where SPD publishes them (e.g. `data_zone` is the 2022 Data Zone; `data_zone_2011` and `data_zone_2001` are historical baselines). The `codes` object mirrors the same datapoints with their GSS / official codes. +:::note Scottish Parliament 2025 boundaries + +`scottish_parliamentary_constituency` and `scottish_parliamentary_region` now hold the **2025** designation (Second Review of Scottish Parliament Boundaries, SSI 2025/285), which took effect at the 7 May 2026 Holyrood election - boundaries **and** names changed. The superseded 2021 values moved to `scottish_parliamentary_constituency_2021` and `scottish_parliamentary_region_2021`. Consumers pinned to the 2021 boundaries should read the `_2021` fields. + +::: + ## Example ```json @@ -29,7 +35,9 @@ Top-level fields hold the **canonical (latest)** value for each datapoint. Year- "electoral_ward": "Midstocket/Rosemount", "uk_parliamentary_constituency": "Aberdeen South", "scottish_parliamentary_region": "North East Scotland", + "scottish_parliamentary_region_2021": "North East Scotland", "scottish_parliamentary_constituency": "Aberdeen Central", + "scottish_parliamentary_constituency_2021": "Aberdeen Central", "health_board_area": "Grampian", "integration_authority": "Aberdeen City", "data_zone": "West End North - 01", @@ -54,8 +62,10 @@ Top-level fields hold the **canonical (latest)** value for each datapoint. Year- "council_area": "S12000033", "electoral_ward": "S13002841", "uk_parliamentary_constituency": "S14000061", - "scottish_parliamentary_region": "S17000016", - "scottish_parliamentary_constituency": "S16000094", + "scottish_parliamentary_region": "S17000026", + "scottish_parliamentary_region_2021": "S17000014", + "scottish_parliamentary_constituency": "S16000151", + "scottish_parliamentary_constituency_2021": "S16000074", "health_board_area": "S08000020", "integration_authority": "S37000002", "data_zone": "S01013550", @@ -109,11 +119,13 @@ Top-level fields hold the **canonical (latest)** value for each datapoint. Year- ### Parliamentary -| Field | Type | Description | Example | -| -------------------------------------- | -------------- | ---------------------------------------------------- | --------------------- | -| `uk_parliamentary_constituency` | string \| null | 2024 UK Parliamentary constituency. | "Aberdeen South" | -| `scottish_parliamentary_region` | string \| null | 2021 Scottish Parliamentary region. | "North East Scotland" | -| `scottish_parliamentary_constituency` | string \| null | 2021 Scottish Parliamentary constituency. | "Aberdeen Central" | +| Field | Type | Description | Example | +| ------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------- | --------------------- | +| `uk_parliamentary_constituency` | string \| null | 2024 UK Parliamentary constituency. | "Aberdeen South" | +| `scottish_parliamentary_region` | string \| null | **2025** Scottish Parliamentary region (current; SSI 2025/285, 7 May 2026 election). | "North East Scotland" | +| `scottish_parliamentary_region_2021` | string \| null | 2021 Scottish Parliamentary region (superseded). | "North East Scotland" | +| `scottish_parliamentary_constituency` | string \| null | **2025** Scottish Parliamentary constituency (current; SSI 2025/285, 7 May 2026 election). | "Aberdeen Central" | +| `scottish_parliamentary_constituency_2021` | string \| null | 2021 Scottish Parliamentary constituency (superseded). | "Aberdeen Central" | ### Health diff --git a/latest b/latest index 919b24fd9..5e8b41891 100644 --- a/latest +++ b/latest @@ -1 +1 @@ -https://postcodesio.s3.amazonaws.com/public/postcodesio-2026-05-29-1141.sql.gz +https://postcodesio.s3.amazonaws.com/public/postcodesio-2026-06-10-1135.sql.gz diff --git a/openapi/components/schemas/ScottishPostcodes.yaml b/openapi/components/schemas/ScottishPostcodes.yaml index f477b0842..4dab94b2e 100644 --- a/openapi/components/schemas/ScottishPostcodes.yaml +++ b/openapi/components/schemas/ScottishPostcodes.yaml @@ -168,16 +168,34 @@ properties: description: 2024 UK Parliamentary constituency name. example: "Aberdeen South" scottish_parliamentary_region: + title: Scottish Parliamentary Region (2025) + type: string + nullable: true + description: >- + 2025 Scottish Parliamentary region name (Second Review of Scottish + Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood + election). This is the current designation. + example: "North East Scotland" + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region (2021) type: string nullable: true - description: 2021 Scottish Parliamentary region name. + description: 2021 Scottish Parliamentary region name (superseded by the 2025 designation). example: "North East Scotland" scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency (2025) + type: string + nullable: true + description: >- + 2025 Scottish Parliamentary constituency name (Second Review of Scottish + Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood + election). This is the current designation. + example: "Aberdeen Central" + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency (2021) type: string nullable: true - description: 2021 Scottish Parliamentary constituency name. + description: 2021 Scottish Parliamentary constituency name (superseded by the 2025 designation). example: "Aberdeen Central" health_board_area: title: Health Board Area (2019) @@ -489,17 +507,30 @@ properties: description: 9-character GSS code for the 2024 UK Parliamentary constituency. example: "S14000061" scottish_parliamentary_region: + title: Scottish Parliamentary Region Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary region (current designation). + example: "S17000026" + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary region. - example: "S17000016" + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary region. + example: "S17000014" scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation). + example: "S16000151" + pattern: "^S[0-9]{8}$" + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary constituency. - example: "S16000094" + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary constituency. + example: "S16000074" pattern: "^S[0-9]{8}$" health_board_area: title: Health Board Area Code (2019) diff --git a/static/openapi.json b/static/openapi.json index 3a865a64e..fcb1f6b31 100644 --- a/static/openapi.json +++ b/static/openapi.json @@ -1660,17 +1660,31 @@ "example": "Aberdeen South" }, "scottish_parliamentary_region": { + "title": "Scottish Parliamentary Region (2025)", + "type": "string", + "nullable": true, + "description": "2025 Scottish Parliamentary region name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.", + "example": "North East Scotland" + }, + "scottish_parliamentary_region_2021": { "title": "Scottish Parliamentary Region (2021)", "type": "string", "nullable": true, - "description": "2021 Scottish Parliamentary region name.", + "description": "2021 Scottish Parliamentary region name (superseded by the 2025 designation).", "example": "North East Scotland" }, "scottish_parliamentary_constituency": { + "title": "Scottish Parliamentary Constituency (2025)", + "type": "string", + "nullable": true, + "description": "2025 Scottish Parliamentary constituency name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation.", + "example": "Aberdeen Central" + }, + "scottish_parliamentary_constituency_2021": { "title": "Scottish Parliamentary Constituency (2021)", "type": "string", "nullable": true, - "description": "2021 Scottish Parliamentary constituency name.", + "description": "2021 Scottish Parliamentary constituency name (superseded by the 2025 designation).", "example": "Aberdeen Central" }, "health_board_area": { @@ -2023,18 +2037,33 @@ "example": "S14000061" }, "scottish_parliamentary_region": { + "title": "Scottish Parliamentary Region Code (2025)", + "type": "string", + "nullable": true, + "description": "9-character GSS code for the 2025 Scottish Parliamentary region (current designation).", + "example": "S17000026" + }, + "scottish_parliamentary_region_2021": { "title": "Scottish Parliamentary Region Code (2021)", "type": "string", "nullable": true, - "description": "9-character GSS code for the 2021 Scottish Parliamentary region.", - "example": "S17000016" + "description": "9-character GSS code for the superseded 2021 Scottish Parliamentary region.", + "example": "S17000014" }, "scottish_parliamentary_constituency": { + "title": "Scottish Parliamentary Constituency Code (2025)", + "type": "string", + "nullable": true, + "description": "9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation).", + "example": "S16000151", + "pattern": "^S[0-9]{8}$" + }, + "scottish_parliamentary_constituency_2021": { "title": "Scottish Parliamentary Constituency Code (2021)", "type": "string", "nullable": true, - "description": "9-character GSS code for the 2021 Scottish Parliamentary constituency.", - "example": "S16000094", + "description": "9-character GSS code for the superseded 2021 Scottish Parliamentary constituency.", + "example": "S16000074", "pattern": "^S[0-9]{8}$" }, "health_board_area": { diff --git a/static/openapi.yaml b/static/openapi.yaml index 81f7dd6a7..7ba5a4582 100644 --- a/static/openapi.yaml +++ b/static/openapi.yaml @@ -1421,16 +1421,28 @@ components: description: 2024 UK Parliamentary constituency name. example: Aberdeen South scottish_parliamentary_region: + title: Scottish Parliamentary Region (2025) + type: string + nullable: true + description: 2025 Scottish Parliamentary region name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation. + example: North East Scotland + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region (2021) type: string nullable: true - description: 2021 Scottish Parliamentary region name. + description: 2021 Scottish Parliamentary region name (superseded by the 2025 designation). example: North East Scotland scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency (2025) + type: string + nullable: true + description: 2025 Scottish Parliamentary constituency name (Second Review of Scottish Parliament Boundaries, SSI 2025/285, effective at the 7 May 2026 Holyrood election). This is the current designation. + example: Aberdeen Central + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency (2021) type: string nullable: true - description: 2021 Scottish Parliamentary constituency name. + description: 2021 Scottish Parliamentary constituency name (superseded by the 2025 designation). example: Aberdeen Central health_board_area: title: Health Board Area (2019) @@ -1742,17 +1754,30 @@ components: description: 9-character GSS code for the 2024 UK Parliamentary constituency. example: S14000061 scottish_parliamentary_region: + title: Scottish Parliamentary Region Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary region (current designation). + example: S17000026 + scottish_parliamentary_region_2021: title: Scottish Parliamentary Region Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary region. - example: S17000016 + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary region. + example: S17000014 scottish_parliamentary_constituency: + title: Scottish Parliamentary Constituency Code (2025) + type: string + nullable: true + description: 9-character GSS code for the 2025 Scottish Parliamentary constituency (current designation). + example: S16000151 + pattern: ^S[0-9]{8}$ + scottish_parliamentary_constituency_2021: title: Scottish Parliamentary Constituency Code (2021) type: string nullable: true - description: 9-character GSS code for the 2021 Scottish Parliamentary constituency. - example: S16000094 + description: 9-character GSS code for the superseded 2021 Scottish Parliamentary constituency. + example: S16000074 pattern: ^S[0-9]{8}$ health_board_area: title: Health Board Area Code (2019) diff --git a/test/queries.outcodes.integration.ts b/test/queries.outcodes.integration.ts index 11bad1148..44802f45c 100644 --- a/test/queries.outcodes.integration.ts +++ b/test/queries.outcodes.integration.ts @@ -20,10 +20,10 @@ describe("queries/outcodes (contract)", () => { "Torry/Ferryhill", ], country: ["Scotland"], - eastings: 392788, - latitude: 57.13536881306984, - longitude: -2.1207891580547087, - northings: 804948, + eastings: 392786, + latitude: 57.13535140639265, + longitude: -2.1208205449010666, + northings: 804946, outcode: "AB10", parish: [], parliamentary_constituency: ["Aberdeen North", "Aberdeen South"], @@ -42,10 +42,10 @@ describe("queries/outcodes (contract)", () => { "Torry/Ferryhill", ], country: ["Scotland"], - eastings: 392788, - latitude: 57.13536881306984, - longitude: -2.1207891580547087, - northings: 804948, + eastings: 392786, + latitude: 57.13535140639265, + longitude: -2.1208205449010666, + northings: 804946, outcode: "AB10", parish: [], parliamentary_constituency: ["Aberdeen North", "Aberdeen South"], @@ -66,17 +66,13 @@ describe("queries/outcodes (contract)", () => { { admin_county: [], admin_district: ["Aberdeen City"], - admin_ward: [ - "George St/Harbour", - "Kincorth/Nigg/Cove", - "Torry/Ferryhill", - ], + admin_ward: ["George St/Harbour", "Torry/Ferryhill"], country: ["Scotland"], - distance: 1167.88531644, + distance: 1163.03925496, eastings: 394472, - latitude: 57.13932328955692, - longitude: -2.092987414556961, - northings: 805386, + latitude: 57.13936805537972, + longitude: -2.092984680379747, + northings: 805391, outcode: "AB11", parish: [], parliamentary_constituency: ["Aberdeen South"], @@ -93,11 +89,11 @@ describe("queries/outcodes (contract)", () => { "Torry/Ferryhill", ], country: ["Scotland"], - distance: 2143.76285125, - eastings: 392788, - latitude: 57.13536881306984, - longitude: -2.1207891580547087, - northings: 804948, + distance: 2146.47577377, + eastings: 392786, + latitude: 57.13535140639265, + longitude: -2.1208205449010666, + northings: 804946, outcode: "AB10", parish: [], parliamentary_constituency: ["Aberdeen North", "Aberdeen South"], @@ -113,10 +109,10 @@ describe("queries/outcodes (contract)", () => { "Northfield/Mastrick North", ], country: ["Scotland"], - distance: 3800.41921117, + distance: 3800.42863154, eastings: 390620, - latitude: 57.16002244140619, - longitude: -2.156713303385415, + latitude: 57.160021305989545, + longitude: -2.156714136718749, northings: 807697, outcode: "AB16", parish: [], @@ -135,10 +131,10 @@ describe("queries/outcodes (contract)", () => { "Westhill and District", ], country: ["Scotland"], - distance: 4587.16320558, + distance: 4587.03227821, eastings: 389845, - latitude: 57.13760743744377, - longitude: -2.169419444644466, + latitude: 57.1376069063906, + longitude: -2.1694168865886603, northings: 805204, outcode: "AB15", parish: [], @@ -180,10 +176,10 @@ describe("queries/outcodes (contract)", () => { "Torry/Ferryhill", ], country: ["Scotland"], - eastings: 392788, - latitude: 57.13536881306984, - longitude: -2.1207891580547087, - northings: 804948, + eastings: 392786, + latitude: 57.13535140639265, + longitude: -2.1208205449010666, + northings: 804946, outcode: "AB10", parish: [], parliamentary_constituency: ["Aberdeen North", "Aberdeen South"], diff --git a/test/queries.postcodes.integration.ts b/test/queries.postcodes.integration.ts index c31502bb0..d2fc7a4f7 100644 --- a/test/queries.postcodes.integration.ts +++ b/test/queries.postcodes.integration.ts @@ -895,18 +895,18 @@ describe("queries/postcodes (contract)", () => { country: "Scotland", date_of_introduction: "199606", date_of_termination: null, - eastings: 394296, + eastings: 394333, european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", incode: "1AL", index_of_multiple_deprivation: 3888, - latitude: 57.150058, + latitude: 57.149591, lep1: null, lep1_id: "S99999999", lep2: null, lep2_id: null, - longitude: -2.095916, + longitude: -2.095304, lsoa: "George Street - 02", lsoa11: "George Street - 02", lsoa11_id: "S01006646", @@ -924,7 +924,7 @@ describe("queries/postcodes (contract)", () => { nhs_ha: "Grampian", nhs_region: null, nhs_region_id: "S99999999", - northings: 806581, + northings: 806529, nuts: "Aberdeen City", nuts_code: "TLM50", nuts_id: "S30000026", @@ -1265,18 +1265,18 @@ describe("queries/postcodes (contract)", () => { country: "Scotland", date_of_introduction: "199606", date_of_termination: null, - eastings: 394198, + eastings: 394216, european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", incode: "1AS", index_of_multiple_deprivation: 3888, - latitude: 57.148296, + latitude: 57.148099, lep1: null, lep1_id: "S99999999", lep2: null, lep2_id: null, - longitude: -2.097531, + longitude: -2.097233, lsoa: "George Street - 02", lsoa11: "George Street - 02", lsoa11_id: "S01006646", @@ -1294,7 +1294,7 @@ describe("queries/postcodes (contract)", () => { nhs_ha: "Grampian", nhs_region: null, nhs_region_id: "S99999999", - northings: 806385, + northings: 806363, nuts: "Aberdeen City", nuts_code: "TLM50", nuts_id: "S30000026", @@ -1812,7 +1812,7 @@ describe("queries/postcodes (contract)", () => { european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", - incode: "1AH", + incode: "1AR", index_of_multiple_deprivation: 3888, latitude: 57.14959, lep1: null, @@ -1846,10 +1846,10 @@ describe("queries/postcodes (contract)", () => { parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB101AH", + pc_compact: "AB101AR", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB10 1AH", + postcode: "AB10 1AR", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, @@ -1887,7 +1887,7 @@ describe("queries/postcodes (contract)", () => { european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", - incode: "1AX", + incode: "1AH", index_of_multiple_deprivation: 3888, latitude: 57.14959, lep1: null, @@ -1921,10 +1921,10 @@ describe("queries/postcodes (contract)", () => { parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB101AX", + pc_compact: "AB101AH", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB10 1AX", + postcode: "AB10 1AH", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, @@ -1962,7 +1962,7 @@ describe("queries/postcodes (contract)", () => { european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", - incode: "1AR", + incode: "1AX", index_of_multiple_deprivation: 3888, latitude: 57.14959, lep1: null, @@ -1996,10 +1996,10 @@ describe("queries/postcodes (contract)", () => { parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB101AR", + pc_compact: "AB101AX", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB10 1AR", + postcode: "AB10 1AX", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, @@ -2233,7 +2233,7 @@ describe("queries/postcodes (contract)", () => { icb: "Scotland", icb_id: "S99999999", idx: 0, - incode: "1AH", + incode: "1AR", index_of_multiple_deprivation: 3888, latitude: 57.14959, lep1: null, @@ -2267,10 +2267,10 @@ describe("queries/postcodes (contract)", () => { parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB101AH", + pc_compact: "AB101AR", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB10 1AH", + postcode: "AB10 1AR", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, @@ -2303,22 +2303,22 @@ describe("queries/postcodes (contract)", () => { ced_id: "S99999999", constituency_id: "S14000061", country: "Scotland", - date_of_introduction: "200702", + date_of_introduction: "199606", date_of_termination: null, - distance: 31.779591520133234, - eastings: 394251, + distance: 17.852553731984106, + eastings: 394216, european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", idx: 1, - incode: "9SD", + incode: "1AS", index_of_multiple_deprivation: 3888, - latitude: 57.148216, + latitude: 57.148099, lep1: null, lep1_id: "S99999999", lep2: null, lep2_id: null, - longitude: -2.096655, + longitude: -2.097233, lsoa: "George Street - 02", lsoa11: "George Street - 02", lsoa11_id: "S01006646", @@ -2336,19 +2336,19 @@ describe("queries/postcodes (contract)", () => { nhs_ha: "Grampian", nhs_region: null, nhs_region_id: "S99999999", - northings: 806376, + northings: 806363, nuts: "Aberdeen City", nuts_code: "TLM50", nuts_id: "S30000026", oa21_id: "S00136377", - outcode: "AB12", + outcode: "AB10", parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB129SD", + pc_compact: "AB101AS", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB12 9SD", + postcode: "AB10 1AS", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, @@ -2379,22 +2379,22 @@ describe("queries/postcodes (contract)", () => { ced_id: "S99999999", constituency_id: "S14000061", country: "Scotland", - date_of_introduction: "199606", + date_of_introduction: "200702", date_of_termination: null, - distance: 45.92630149541854, - eastings: 394198, + distance: 31.779591520133234, + eastings: 394251, european_electoral_region: "Scotland", icb: "Scotland", icb_id: "S99999999", idx: 1, - incode: "1AS", + incode: "9SD", index_of_multiple_deprivation: 3888, - latitude: 57.148296, + latitude: 57.148216, lep1: null, lep1_id: "S99999999", lep2: null, lep2_id: null, - longitude: -2.097531, + longitude: -2.096655, lsoa: "George Street - 02", lsoa11: "George Street - 02", lsoa11_id: "S01006646", @@ -2412,19 +2412,19 @@ describe("queries/postcodes (contract)", () => { nhs_ha: "Grampian", nhs_region: null, nhs_region_id: "S99999999", - northings: 806385, + northings: 806376, nuts: "Aberdeen City", nuts_code: "TLM50", nuts_id: "S30000026", oa21_id: "S00136377", - outcode: "AB10", + outcode: "AB12", parish: null, parish_id: "S99999999", parliamentary_constituency: "Aberdeen South", - pc_compact: "AB101AS", + pc_compact: "AB129SD", pfa: "Scotland", pfa_id: "S23000009", - postcode: "AB10 1AS", + postcode: "AB12 9SD", primary_care_trust: "Aberdeen City Community Health Partnership", quality: 1, region: null, diff --git a/test/queries.scottish_postcodes.integration.ts b/test/queries.scottish_postcodes.integration.ts index f496ecaf1..1292023c7 100644 --- a/test/queries.scottish_postcodes.integration.ts +++ b/test/queries.scottish_postcodes.integration.ts @@ -92,9 +92,13 @@ describe("queries/scottish_postcodes (contract)", () => { roa_local_code: null, scottish_index_of_multiple_deprivation: 3888, scottish_parliamentary_constituency: "Aberdeen Central", - scottish_parliamentary_constituency_code: "S16000074", + scottish_parliamentary_constituency_2021: "Aberdeen Central", + scottish_parliamentary_constituency_2021_code: "S16000074", + scottish_parliamentary_constituency_code: "S16000151", scottish_parliamentary_region: "North East Scotland", - scottish_parliamentary_region_code: "S17000014", + scottish_parliamentary_region_2021: "North East Scotland", + scottish_parliamentary_region_2021_code: "S17000014", + scottish_parliamentary_region_code: "S17000026", settlement: "Aberdeen, Milltimber, and Peterculter", settlement_2001: "Aberdeen", settlement_2020: null, @@ -196,9 +200,13 @@ describe("queries/scottish_postcodes (contract)", () => { roa_local_code: null, scottish_index_of_multiple_deprivation: 3888, scottish_parliamentary_constituency: "Aberdeen Central", - scottish_parliamentary_constituency_code: "S16000074", + scottish_parliamentary_constituency_2021: "Aberdeen Central", + scottish_parliamentary_constituency_2021_code: "S16000074", + scottish_parliamentary_constituency_code: "S16000151", scottish_parliamentary_region: "North East Scotland", - scottish_parliamentary_region_code: "S17000014", + scottish_parliamentary_region_2021: "North East Scotland", + scottish_parliamentary_region_2021_code: "S17000014", + scottish_parliamentary_region_code: "S17000026", settlement: "Aberdeen, Milltimber, and Peterculter", settlement_2001: "Aberdeen", settlement_2020: null, @@ -266,8 +274,10 @@ describe("queries/scottish_postcodes (contract)", () => { registration_district: "S12000033", roa_community_planning_partnership: null, roa_local: null, - scottish_parliamentary_constituency: "S16000074", - scottish_parliamentary_region: "S17000014", + scottish_parliamentary_constituency: "S16000151", + scottish_parliamentary_constituency_2021: "S16000074", + scottish_parliamentary_region: "S17000026", + scottish_parliamentary_region_2021: "S17000014", settlement: "S53000002", strategic_development_planning_area: "S11000001", travel_to_work_area: "S22000047", @@ -322,7 +332,9 @@ describe("queries/scottish_postcodes (contract)", () => { roa_local: null, scottish_index_of_multiple_deprivation: 3888, scottish_parliamentary_constituency: "Aberdeen Central", + scottish_parliamentary_constituency_2021: "Aberdeen Central", scottish_parliamentary_region: "North East Scotland", + scottish_parliamentary_region_2021: "North East Scotland", settlement: "Aberdeen, Milltimber, and Peterculter", settlement_2001: "Aberdeen", settlement_2020: null, diff --git a/test/scottish_postcodes.e2e.integration.ts b/test/scottish_postcodes.e2e.integration.ts index c636a60ba..a2a40bf63 100644 --- a/test/scottish_postcodes.e2e.integration.ts +++ b/test/scottish_postcodes.e2e.integration.ts @@ -33,7 +33,9 @@ describe("Scottish postcodes E2E", () => { local_government_district_1991: "Aberdeen City", uk_parliamentary_constituency: "Aberdeen South", scottish_parliamentary_region: "North East Scotland", + scottish_parliamentary_region_2021: "North East Scotland", scottish_parliamentary_constituency: "Aberdeen Central", + scottish_parliamentary_constituency_2021: "Aberdeen Central", health_board_area: "Grampian", health_board_area_2006: "Grampian", health_board_area_1995: "Grampian", @@ -83,8 +85,10 @@ describe("Scottish postcodes E2E", () => { local_government_district: "15", local_government_district_1991: "15", uk_parliamentary_constituency: "S14000061", - scottish_parliamentary_region: "S17000014", - scottish_parliamentary_constituency: "S16000074", + scottish_parliamentary_region: "S17000026", + scottish_parliamentary_region_2021: "S17000014", + scottish_parliamentary_constituency: "S16000151", + scottish_parliamentary_constituency_2021: "S16000074", health_board_area: "S08000020", health_board_area_2006: "S08000006", health_board_area_1995: "02", diff --git a/test/seed/seed.sql.gz b/test/seed/seed.sql.gz index 03d8e9161..3546712bb 100644 Binary files a/test/seed/seed.sql.gz and b/test/seed/seed.sql.gz differ