nearest_outcode: Nearest outcode

View source: R/nearest_outcode.R

nearest_outcodeR Documentation

Nearest outcode

Description

Returns nearest outcodes for a given outcode. The search is based on the relative distance of the outcode centroid.

Usage

nearest_outcode(outcode, limit = 10, radius = 5000)

Arguments

outcode

A string with a UK postcode.

limit

An integer. Optional parameter. Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100.

radius

An integer. Optional parameter. Limits number of postcodes matches to return. Defaults to 5,000m. Needs to be less than 25,000m.

Value

A list of geographical properties.

See Also

postcode_lookup for documentation.

Examples


nearest_outcode("EC1Y")
nearest_outcode("EC1Y", limit = 11)
nearest_outcode("EC1Y", limit = 11, radius = 6000)



PostcodesioR documentation built on March 18, 2022, 8:04 p.m.