## code to prepare `response_directions_driving` dataset
library(mapsapi)
library(xml2)
key = readLines("~/key")
doc = mp_directions(
origin = c(34.81127, 31.89277),
destination = "Haifa",
alternatives = TRUE,
key = key,
quiet = TRUE
)
doc = as_list(doc)
response_directions_driving = doc
usethis::use_data(response_directions_driving, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.