getRoute: Get route information

Description Usage Arguments Value Examples

Description

Get route information

Usage

1
2
getRoute(url = setURL(type = "routing"), app_id, app_code, waypoint0,
  waypoint1, vehicle = "truck")

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.

vehicle

Vehicle type for which to calculate the route. Only two options are possible; "truck" or "car". The paramters defaults to "truck".

Value

A data.frame with all the information about the requested route.

Examples

1
2
3
4
## Not run: 
getRoute(app_id = "xxx", app_code = "xxx", waypoint0 = "52.5,13.45", waypoint1 = "53.5,13.45")

## End(Not run)

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