powered by
Returns nearest outcodes for a given outcode. The search is based on the relative distance of the outcode centroid.
nearest_outcode(outcode, limit = 10, radius = 5000)
A string with a UK postcode.
An integer. Optional parameter. Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100.
An integer. Optional parameter. Limits number of postcodes matches to return. Defaults to 5,000m. Needs to be less than 25,000m.
A list of geographical properties.
postcode_lookup for documentation.
postcode_lookup
# NOT RUN { nearest_outcode("EC1Y") nearest_outcode("EC1Y", limit = 11) nearest_outcode("EC1Y", limit = 11, radius = 6000) # } # NOT RUN { # }
Run the code above in your browser using DataLab