Description Usage Arguments Value Examples
get_address
get an address using an API from random_postcode
.
The API sample a real UK address from https://api.postcodes.io/random/postcodes.
1 | get_address(postcode = NA)
|
postcode |
A string |
The output is a list of 5 variables:
1) postcode of the UK address, 2) country, 3) primary_care_trust
4) longitude of the address and 5) latitude of the address.
#' If postcode
is given, the return address is an address with
the defined outward postcode
1 2 | get_address()
get_address('w3')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.