0.0.5 • Published 5 years ago

@thetransportlab/ts-transportforlondon v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago