convertPostcode | R Documentation |
This is a much simpler implementation of the tools found in the
PostcodesioR
R package, intended for use with the searchNetwork()
function.
convertPostcode(postcode)
postcode |
A valid UK postcode. required A string containing a single valid UK postcode, e.g., |
A list containing the latitude, longitude, and input postcode.
The PostcodesioR
package at
https://github.com/ropensci/PostcodesioR/
# convert a UK postcode
convertPostcode("SW1A1AA")
## Not run:
# use with `searchNetwork()`
palace <- convertPostcode("SW1A1AA")
searchNetwork(lat = palace$lat, lng = palace$lng, max_dist = 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.