#' \code{register_key} Register's your API key needed to geocode. If the key is not registered,
#' The geocoding functions will throw errors.
#'
#' @param api_key The api key, as a character object.
#'
#' @importFrom ggmap register_google
#'
#' @examples \dontrun{
#' register_key('ASnERN405060i7NDNS') # This key is fictional
#' }
register_key <- function(api_key){
#read in the API key
KEY <- api_key
# Register key
register_google(key = KEY)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.