Skip to main content

Place Response Schema

The Place schema represents geographical and administrative information for places in Great Britain (England, Scotland, Wales). This data is returned when using the place lookup endpoints in the Postcodes.io API.

Example

{
"code": "osgb4000000074559209",
"name_1": "London",
"name_1_lang": "eng",
"name_2": null,
"name_2_lang": null,
"local_type": "Capital City",
"outcode": "EC1A",
"county_unitary": "Greater London",
"county_unitary_type": "Greater London Authority",
"district_borough": "City of London",
"district_borough_type": "London Borough",
"region": "London",
"country": "England",
"longitude": -0.09853,
"latitude": 51.51396,
"eastings": 531628,
"northings": 181342,
"min_eastings": 503508,
"min_northings": 155850,
"max_eastings": 561984,
"max_northings": 197627
}

Reference

FieldTypeDescriptionExample
codestringA unique, persistent identifier for the place. Only may change for Section of Named Road and Section of Numbered Road types."osgb4000000074559209"
name_1stringThe primary proper noun name that applies to the real-world entity."London"
name_1_langstring | nullThe language of the primary name. Only present when multiple languages are recorded (e.g., "eng" for English, "cym" for Welsh)."eng"
name_2string | nullThe secondary name in a different language, if applicable."Llundain"
name_2_langstring | nullThe language of the secondary name (e.g., "cym" for Welsh, "gla" for Scottish Gaelic)."cym"
local_typestringThe Ordnance Survey classification for the place (e.g., City, Town, Village, Hamlet, Other Settlement, Suburban Area)."Capital City"
outcodestringThe postcode district for this place (the first part of the postcode)."EC1A"
county_unitarystring | nullThe County, Unitary Authority, or Greater London Authority administrative area containing or nearest to this place."Greater London"
county_unitary_typestring | nullThe type of county or unitary administrative unit (e.g., County, Unitary Authority, Metropolitan District)."Greater London Authority"
district_boroughstring | nullThe District, Metropolitan District, or London Borough administrative unit containing this place."City of London"
district_borough_typestring | nullThe type of district or borough administrative unit (e.g., District, London Borough)."London Borough"
regionstringThe European Region (formerly Government Office Region) containing or nearest to this place."London"
countrystringThe country within Great Britain (England, Scotland, or Wales). OS Places relates to Great Britain only."England"
longitudenumberThe WGS84 longitude coordinate derived from the place's national grid reference.-0.09853
latitudenumberThe WGS84 latitude coordinate derived from the place's national grid reference.51.51396
eastingsintegerThe Ordnance Survey grid reference easting (X-coordinate) to 1-meter resolution. Blank for Channel Islands and Isle of Man.531628
northingsintegerThe Ordnance Survey grid reference northing (Y-coordinate) to 1-meter resolution. Blank for Channel Islands and Isle of Man.181342
min_eastingsintegerMinimum easting value of the bounding box (Minimum Bounding Rectangle) for roads and settlements.503508
min_northingsintegerMinimum northing value of the bounding box (Minimum Bounding Rectangle) for roads and settlements.