diffDistTruckCarBatch: Batch input (data.frame) for the diffDistTruckCar() function.

Description Usage Arguments Value Examples

Description

Batch input (data.frame) for the diffDistTruckCar() function.

Usage

1
2
diffDistTruckCarBatch(url = setURL(type = "routing"), app_id, app_code,
  df, waypoint0 = "waypoint0", waypoint1 = "waypoint1")

Arguments

url

The base url as required to connect to the HERE API. If no value is passed in this parameter the standard parameter from the setURL() is used. See the documentation for the setURL() for more information about the base url.

app_id

App id for the HERE REST API call. See the vignette: Getting Started how to get an App Id.

app_code

App Code for the HERE REST API call. See the vignette: Getting Started how to get an App Code.

df

Dataframe where for the distances will be calculated based on the geocoordinates.

waypoint0

Name of the column for the waypoint 0.

waypoint1

Name of the column for the waypoint 0.

Value

The truck and car distances for each each row in the inputted dataframe.

Examples

1
2
3
4
5
diffDistTruckCarBatch(
df = data.frame(waypoint0 = c("xxx", "yyy"), waypoint1 = c("yyy", "xxx")),
app_id = "xxx",
app_code = "xxx"
)

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