postcode_lookup: Postcode lookup

Description Usage Arguments Value Examples

View source: R/postcode_lookup.R

Description

Lookup a postcode.

Usage

1
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.

Value

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

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

Examples

1
2
postcode_lookup("EC1Y8LX")
postcode_lookup("EC1Y 8LX") # spaces are ignored

erzk/PostcodesioR documentation built on April 24, 2018, 10:48 p.m.