View source: R/nearest_postcode.R
nearest_postcode | R Documentation |
Returns nearest postcodes for a given postcode. The search is based on the relative distance of the postcode centroid.
nearest_postcode(postcode, limit = 10, radius = 100)
postcode |
A string. Valid UK postcode. |
limit |
A string or integer. Limits number of postcodes matches to return. Defaults to 10. Needs to be lower than 100. |
radius |
Limits number of postcodes matches to return. Defaults to 100m. Needs to be less than 2,000m. |
A list of geographic properties of the nearest postcode.
nearest_postcode("EC1Y 8LX")
nearest_postcode("EC1Y 8LX", limit = 11)
nearest_postcode("EC1Y 8LX", limit = 12, radius = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.