View source: R/shapes_helpers.R
| shape_point_distances | R Documentation |
Distance from each shape point to the previous one
shape_point_distances(shape_id, lat, lon)
shape_id, lat, lon |
The |
A numeric vector of distances in meters, on the same sphere used by
{s2}. The first point of each shape is 0 meters away from its
"previous" point, whatever its coordinates. For any other point, a
missing coordinate in it or in the previous point gives NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.