Set up a valid authentication to the ‘HERE’ REST APIs and optionally configure a proxy.
In order to use the functionality of the hereR package, application credentials for a HERE project must be provided. The HERE application credentials (API Key) can be obtained for free as follows:
The API key is set for the current R session and will be used to authenticate in the requests to the HERE REST APIs (250K free transactions per month). To set the key, please use:
Alternatively, the key can be exported directly to the environment:
By default, the hereR package does not print messages with information about the requests sent and the data received from to the HERE APIs. If this information should be printed for the current R session, use:
set_Verbose(FALSE) to set the hereR package to be quiet again.
For freemium licenses the number of requests per second (RPS) is limited, use
set_freemium(FALSE) to turn off rate limits for accounts with paid plans.
The limits are:
|Geocoding & Search||5|
|Multi Reverse Geocoding||1|
If you are working behind a corporate proxy the requests sent by hereR might fail with timeout errors. In this case, consider setting a global proxy for R. Open the R environment file
file.edit('~/.Renviron') and add your proxy configuration:
Note: On RStudio Server this file is located at