# mathieu rajerison
# https://datagistips.hypotheses.org/
point_distance <- function(pt1, pt2) {
sqrt((pt1[1] - pt2[1])^2 + (pt1[2] - pt2[2])^2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.