polylineLength <- function(xy) {
# purpose
# obtain the length of a polyline given as a 2-col matrix of coordinates
chai <- polylineChainage(xy)
l <- max(chai)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.