incident {hereR} | R Documentation |
HERE Traffic API: Incidents
Description
Traffic incident information from the HERE 'Traffic' API in areas of interest (AOIs). The incidents contain information about location, duration, severity, type, description and further details.
Usage
incident(aoi, from = NULL, to = NULL, url_only = FALSE)
Arguments
aoi |
|
from |
|
to |
|
url_only |
boolean, only return the generated URLs ( |
Value
An sf
object containing the traffic incidents.
Note
The maximum width and height of the bounding box of the input AOIs is 1 degree.
This means that each polygon (= one row) in the AOI sf
object should fit in a 1 x 1 degree bbox.
References
Examples
# Provide an API Key for a HERE project
set_key("<YOUR API KEY>")
# Traffic incidents
incidents <- incident(
aoi = aoi,
url_only = TRUE
)
[Package hereR version 1.0.0 Index]