@thetransportlab/ts-transportforlondon
v0.0.5
Published
A (beta) typescript library for retrieving information from the TfL API
Readme
TS-TransportForLondon
This library is currently in beta. It only contains a small number of calls to the API at this time, and only provides tube data.
Typescript interfaces are included for all functions.
Available functions
GetArrivalsForLine - Retrieves arrivals for all stops on a specified TfL tube line
Parameters:
app_key- The app key obtained from the TfL API dashboardline- The name of the line
GetArrivalsForStop
Retrieves all arrivals for a stop on a particular TfL line.
Parameters:
app_key- The app key obtained from the TfL API dashboardline- The name of the linestationId- The NAPTAN ID of the station
GetStopsForLine - Retrieve stops for the specified TfL line
Parameters:
app_key- The app key obtained from the TfL API dashboardline- The name of the line
GetTubeLines - Retrieve all TfL tube lines
Parameters:
app_key- The app key obtained from the TfL API dashboard
