get_tfl_collisions: Get TfL collisions Function

Description Usage Arguments Examples

Description

This function returns a dataframe of collisions in London This dataset contains car park names, state (giving an indication of whether it is open or closed), capacity and real-time occupancy for selected car parks in the districts of Manchester, Stockport and Wigan only. Metrolink Park & Ride sites will be available shortly. Function also exracts longitude and latitude into separate columns from WKT column

Usage

1
get_tfl_collisions(year, readpath = getwd(), isFirewall = FALSE)

Arguments

year

the year for which you want to retreive collisions data for

readpath

the path where you saved the file with the api key, defaults to working directory

isFirewall

specify if you are behind a corporate firewall that might cause issues. Defaults to FALSE

Examples

1
collisions_df <- get_tfl_collisions("2015")

maczokni/transportR documentation built on May 30, 2019, 9:57 p.m.