# NOT RUN {
library(xml2)
doc = as_xml_document(response_matrix)
# }
# NOT RUN {
doc = google_matrix(
origins = rbind(c(34.81127, 31.89277), c(35.212085, 31.769976)),
destinations = c(34.781107, 32.085003)
)
locations = c("Haifa", "Tel-Aviv", "Jerusalem", "Beer-Sheva")
doc = google_matrix(
origins = locations,
destinations = locations
)
# }
Run the code above in your browser using DataLab