| place_lookup {PostcodesioR} | R Documentation |
Place lookup
Description
Lookup a place by code. Returns all available data if found. Returns 404 if a place does not exist.
Usage
place_lookup(code)
Arguments
code |
A string. The unique identifier for places - Ordnance Survey (OSGB) code. |
Value
A list with available places.
-
codeA unique identifier that enables records to be identified easily. The identifier will be persistent for all LocalTypes except Section of Named Road and Section of Numbered Road. -
name_1Name. The proper noun that applies to the real world entity. Names that are prefixed by the definite article are not formatted for alphabetical sorting, that is, 'The Pennines' not 'Pennines, The'. -
name_1_langLanguage of Name. The language type is only set where more than one name exists E.g. cym (Welsh), eng (English), gla (Scottish Gaelic). -
name_2Name (in case of multiple languages). The proper noun that applies to the real world entity. Names that are prefixed by the definite article are not formatted for alphabetical sorting, that is, 'The Pennines' not 'Pennines, The'. -
name_2_langLanguage of Name. The language type is only set where more than one name exists E.g. cym (Welsh), eng (English), gla (Scottish Gaelic). -
local_typeThe Ordnance Survey classification for the named place being represented by the specific feature. E.g. City, Town, Village, Hamlet, Other Settlement, Suburban Area -
outcodeThe postcode district, for example, SO15. -
county_unitaryAdministrative Area. The name of the County (non-metropolitan or Metropolitan), Unitary Authority or Greater London Authority administrative area that the point geometry for feature is within or nearest to. -
county_unitary_typeAdministrative Area Type. Classifies the type of administrative unit. -
district_boroughDistrict or Borough. The name of the District, Metropolitan District or London Borough administrative unit that the point geometry for the feature is within. -
district_borough_typeBorough Type. Classifies the type of administrative unit. -
regionThe name of the European Region (was Government O ice Region) that the point geometry for the feature is within or nearest to. -
countryThe country (i.e. one of the four constituent countries of the United Kingdom or the Channel Islands or the Isle of Man) to which each place is assigned. -
longitudeThe WGS84 longitude given the Place's national grid reference. -
latitudeThe WGS84 latitude given the Place's national grid reference. -
eastingsThe Ordnance Survey postcode grid reference Easting to 1 metre resolution; blank for postcodes in the Channel Islands and the Isle of Man. -
northingsThe Ordnance Survey postcode grid reference Northing to 1 metre resolution; blank for postcodes in the Channel Islands and the Isle of Man. -
min/max northings/eastingsMinimum and Maximum, Northings and Eastings. Bounding box or Minimum Bounding Rectangle (MBR) for roads and settlements. For Settlements and Sections of Named and Numbered Roads, the MBR gives a representation of the extent of these features and is not snapped to the real world extent.
See https://postcodes.io/docs for more details.
Examples
place_lookup("osgb4000000074544700")