0.0.5 • Published 3 years ago

@thetransportlab/ts-transportforlondon v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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 dashboard
  • line - 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 dashboard
  • line - The name of the line
  • stationId - 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 dashboard
  • line - The name of the line

GetTubeLines - Retrieve all TfL tube lines Parameters:

  • app_key - The app key obtained from the TfL API dashboard
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago