View source: R/hike_create_lines.R
hike_distance | R Documentation |
distance calculation
hike_distance(point_a, point_b, unit)
unit |
- km or m |
a |
- num. coords |
b |
- num. coords |
calc. the distance between two points
Eric Krueger
a <- stplanr::geo_code("Jena") b <- stplanr::geo_code("Weimar") a_to_b <- data.frame(rbind(a,b)) hike_distance(a_to_b[1,],a_to_b[2,], "m") or hike_distance(a,b, "m")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.