extractDist: Extracts the distance from a getRoute() result.

Description Usage Arguments Value Examples

Description

Extracts the distance from a getRoute() result.

Usage

1
extractDist(route_object, unit = "km", rnd = TRUE)

Arguments

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.

Value

The distance from a getRoute() object in km or mi.

Examples

1
2
route_obj <- list(response.route.summary.distance = 100.25)
extractDist(route_object = route_obj)

jersme/connectHERE documentation built on May 17, 2019, 3:12 a.m.