powered by
This is a much simpler implementation of the tools found in the PostcodesioR R package, intended for use with the searchNetwork() function.
PostcodesioR
searchNetwork()
convertPostcode(postcode)
A list containing the latitude, longitude, and input postcode.
A valid UK postcode.
required
A string containing a single valid UK postcode, e.g., "SW1A 1AA".
"SW1A 1AA"
The PostcodesioR package at https://github.com/ropensci/PostcodesioR/
# convert a UK postcode convertPostcode("SW1A1AA") if (FALSE) { # use with `searchNetwork()` palace <- convertPostcode("SW1A1AA") searchNetwork(lat = palace$lat, lng = palace$lng, max_dist = 10) }
Run the code above in your browser using DataLab