Wolfram Research

UKPostcodeLookup

Contributed by: Jon McLoone

Source Notebook

Find information associated with a UK Postcode

ResourceFunction["UKPostcodeLookup"][postcode]

returns information on the given UK postcode.

ResourceFunction["UKPostcodeLookup"][geoposition]

returns information on the UK postcode nearest to geoposition.

ResourceFunction["UKPostcodeLookup"][{location1,location2,}]

returns information on all the given postcodes or geopositions

ResourceFunction["UKPostcodeLookup"][postcode, property]

returns only the given property for the given postcode

Examples

Basic Examples

Lookup a postcode:

In[1]:=
ResourceFunction["UKPostcodeLookup"]["OX29 8FD"]
Out[1]=

Scope

Find a specific property of a given postcode

In[2]:=
ResourceFunction["UKPostcodeLookup"]["OX29 8FD", "Location"]
Out[2]=
In[3]:=
GeoGraphics[%, GeoRange -> Quantity[100, "Meters"]]
Out[3]=

You can lookup information from the GeoPosition

In[4]:=
ResourceFunction["UKPostcodeLookup"][
 GeoPosition[{51.825508`, -1.366991`}], "Postcode"]
Out[4]=

Providing a list of postcodes is faster than making separate requests

In[5]:=
ResourceFunction[
 "UKPostcodeLookup"][{"OX29 8FD", "OX29 8SJ", "OX29 8LD", "OX29 8SA", "OX29 8LR"}, "Location"]
Out[5]=

Resource History

Source Metadata