Real-time traffic flow and incident information based on the HERE 'Traffic' API in areas of interest (AOIs).
The traffic flow data contains speed ("SP") and congestion (jam factor: "JF") information.
Traffic incidents contain information about location, time, duration, severity, description and other details.
traffic(aoi,
product = "flow", from = NULL, to = NULL,
min_jam_factor = 0, url_only = FALSE
)An sf object containing the requested traffic information.
sf object, Areas of Interest (POIs) of geometry type POLYGON.
character, traffic product of the 'Traffic API'. Supported products: "flow" and "incidents".
POSIXct object, datetime of the earliest traffic incidents (Note: Only takes effect if product is set to "incidents").
POSIXct object, datetime of the latest traffic incidents (Note: Only takes effect if product is set to "incidents").
numeric, only retrieve flow information with a jam factor greater than the value provided (Note: Only takes effect if product is set to "flow", default = 0).
boolean, only return the generated URLs (default = FALSE)?
hereR-defunct