View source: R/helper_functions.R
get_route_straightness | R Documentation |
Calculate Route Straightness
get_route_straightness( Start_Latitude, Start_Longitude, End_Latitude, End_Longitude, Distance_Travelled )
Start_Latitude |
latitude coordinate for starting location |
Start_Longitude |
longitude coordinate for starting location |
End_Latitude |
latitude coordinate for ending location |
End_Longitude |
longitude coordinate for ending location |
Distance_Travelled |
distance travelled. Measured by Azuga chip. Units in Miles. |
straightness The straightness index. A value between 0 and 1 that indicates route straightness
Julie Wisch
https://cran.rstudio.com/web/packages/trajr/vignettes/trajr-vignette.html
## Not run: get_route_straightness(38.6630107, -90.327784, 38.6247528, -90.2197958, 18.2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.