# NOT RUN {
library(xml2)
doc = as_xml_document(response_directions)
r = extract_routes(doc)
plot(r)
# }
# NOT RUN {
doc = google_directions(
origin = c(34.81127, 31.89277),
destination = c(34.781107, 32.085003),
alternatives = TRUE
)
r = extract_routes(doc)
plot(r)
# }
Run the code above in your browser using DataLab