Description Usage Arguments Value Examples
Print Trip Summary and Turn-By-Turn Directions
1 | print_trip(trip, all_details = FALSE)
|
trip |
A trip response from |
all_details |
Boolean. Should we print each turn-by-turn instruction along with an overall summary? |
The input trip
object, invisibly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(valhallr)
# set up origin and destination data
from <- test_data("uottawa")
to <- test_data("cdntirecentre")
# calculate the trip
trip <- route(from = from, to = to)
# show overall trip information
print_trip(trip, all_details = FALSE)
# make an interactive map of the trip using the leaflet package
map_trip(trip, method = "leaflet")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.