Description Usage Arguments Value Examples
Batch input (data.frame) for the diffDistTruckCar() function.
1 2 | diffDistTruckCarBatch(url = setURL(type = "routing"), app_id, app_code,
df, waypoint0 = "waypoint0", waypoint1 = "waypoint1")
|
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. |
The truck and car distances for each each row in the inputted dataframe.
1 2 3 4 5 | diffDistTruckCarBatch(
df = data.frame(waypoint0 = c("xxx", "yyy"), waypoint1 = c("yyy", "xxx")),
app_id = "xxx",
app_code = "xxx"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.