UNPKG

tfl-api-wrapper

Version:

A Node JS wrapper for the Transport for London API

29 lines (28 loc) 1.09 kB
import TfL from './interfaces/tfl'; import TfLAPI from './tfl'; export default class Occupancy extends TfLAPI { constructor(config: string); /** * Get the occupancy for bike points. * @param id Bike Point ID */ getBikePointByIDs(ids: string[]): Promise<Array<TfL['BikePointOccupancy']>>; /** * Gets the occupancy for a charge connectors with a given id * @param id Charge Connector ID (Eg. ChargePointESB-UT06NW-1) */ getCarkParkByID(id: string): Promise<TfL['CarParkOccupancy']>; /** * Gets the occupancy for a charge connectors with a given id * @param id Charge Connector ID (Eg. ChargePointCM-24119-49940) */ getChargeConnectorByID(id: string): Promise<TfL['ChargeConnectorOccupancy']>; /** * Gets the occupancy for all car parks that have occupancy data */ getAllCarParks(): Promise<Array<TfL['CarParkOccupancy']>>; /** * Gets the occupancy for all charge connectors */ getAllChargeConnectors(): Promise<Array<TfL['ChargeConnectorOccupancy']>>; }