Learn R Programming

hereR (version 1.1.0)

incident: 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)

Value

An sf object containing the traffic incidents.

Arguments

aoi

sf object, Areas of Interest (POIs) of geometry type POLYGON.

from

POSIXct object, start time of the earliest traffic incidents (default = NULL).

to

POSIXct object, end time of the latest traffic incidents (default = NULL).

url_only

boolean, only return the generated URLs (default = FALSE)?

References

HERE Traffic API: Incidents

Examples

Run this code
# Provide an API Key for a HERE project
set_key("")

# Traffic incidents
incidents <- incident(
  aoi = aoi,
  url_only = TRUE
)

Run the code above in your browser using DataLab