@thetransportlab/ts-transportforlondon
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @thetransportlab/ts-transportforlondon

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

12 kB

Total Files

22

Last publish

Collaborators

  • chronsyn