Description Usage Arguments Value Examples
Extracts the distance from a getRoute() result.
1 | extractDist(route_object, unit = "km", rnd = TRUE)
|
route_object |
The object as otputted by the getRoute() function. |
unit |
The unit of measure of the outputted distance object. Currently only "km" and "mi" are an option. |
rnd |
Rounds the result. TRUE is the standard setting. |
The distance from a getRoute() object in km or mi.
1 2 | route_obj <- list(response.route.summary.distance = 100.25)
extractDist(route_object = route_obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.