postcode_lookup {PostcodesioR}R Documentation

Postcode lookup

Description

Lookup a postcode.

Usage

postcode_lookup(postcode)

Arguments

postcode

A string. One valid UK postcode. This function is case- and space-insensitive. For more than one postcode use bulk_postcode_lookup. For Scottish postcodes use scottish_postcode_lookup.

Value

A data frame. Returns all available data if found. Returns NAs if postcode does not exist (404).

See https://postcodes.io/docs for more details.

Examples


postcode_lookup("EC1Y8LX")
postcode_lookup("EC1Y 8LX") # spaces are ignored
postcode_lookup("DE3 5LF") # terminated postcode returns NAs



[Package PostcodesioR version 0.3.1 Index]