get.distance <-
function(start,destination, dist.matrix){
row <- which(rownames(dist.matrix) == start)
col <- which(colnames(dist.matrix) == destination)
return(dist.matrix[row,col])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.