Learn R Programming

datagovsgR (version 1.0.1)

traffic_images: Traffic Images

Description

This functions calls upon the Traffic Images API from data.gov.sg and returns links to images of live traffic conditions along expressways and Woodlands & Tuas Checkpoints, including details of the camera location. This data provided by the API is updated every minute.

Usage

traffic_images(date_time = "")

Value

A dataframe containing links to the traffic images of current traffic conditions

Arguments

date_time

Defaults to current (SGD) time. Format: YYYY-MM-DDTHH:MM:SS

Examples

Run this code
traffic_images()
traffic_images(date = "2022-07-01T15:32:45")
traffic_images(date = "2021-02-11T14:11:07")

Run the code above in your browser using DataLab