Returns incidents currently happening on the roads, such as accidents, vehicle breakdowns etc.

getTrafficIncidents(api_key)

Arguments

api_key

API key for LTA's Datamall

Value

A dataframe containing each traffic incident, its type, coordinates, and description message

Examples

# NOT RUN {
getTrafficIncidents(mykey)
# }