Looks for API key in environment variable "GOOGLE_API_KEY"
1 |
routes assumes you have a Google API key stored in the environment variable
GOOGLE_API_KEY
. First, get an API key from google,
then run:
1 | usethis::edit_r_environ()
|
to open your .Renviron
file and add a line of the form:
1 | GOOGLE_API_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.