getRoute <-
function(df, id){
cbind(BikeId = id, route(from = c(as.character(df$StartStationName)),
to = c(as.character(df$EndStationName)), mode = 'bicycling'
,structure = "legs"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.