diffDistTruckCar: Return delta in distance between truck and car routes

Description Usage Arguments Value Examples

Description

Return delta in distance between truck and car routes

Usage

1
2
diffDistTruckCar(url = setURL(type = "routing"), app_id, app_code,
  waypoint0, waypoint1, unit = "km", rnd = TRUE)

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.

waypoint0

Starting point as a position with in geocoordinates.

waypoint1

End point as a position with in geocoordinates.

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

A list with the truck and car distance

Examples

1
2
3
4
5
6
7
8
## Not run: 
diffDistTruckCar(
app_id = "xxx",
app_code = "xxx",
waypoint0 = "52.5,13.4",
waypoint1 = "54.5,13")

## End(Not run)

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