Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TSOpenLDB

Hierarchy

  • TSOpenLDB

Implements

Index

Constructors

constructor

  • new TSOpenLDB(__namedParameters: { apiKey: string; debugEnabled: boolean }): TSOpenLDB
  • Parameters

    • __namedParameters: { apiKey: string; debugEnabled: boolean }
      • apiKey: string
      • debugEnabled: boolean

    Returns TSOpenLDB

Properties

Private _apiKey

_apiKey: string

Private _debugEnabled

_debugEnabled: boolean = false

Methods

Private CallRequiredParams

Private fetchFromDarwin

getArrBoardWithDetails

  • getArrBoardWithDetails(__namedParameters: { _params: _params; numRows: number; time: string; timeOffset: number; timeWindow: number }): Promise<IOpenLDBSVWSStationBoard>
  • Parameters

    • __namedParameters: { _params: _params; numRows: number; time: string; timeOffset: number; timeWindow: number }
      • _params: _params
      • numRows: number
      • time: string
      • timeOffset: number
      • timeWindow: number

    Returns Promise<IOpenLDBSVWSStationBoard>

getArrDepBoardWithDetails

getArrivalBoardByCRS

  • getArrivalBoardByCRS(__namedParameters: { _params: _params; getNonPassengerServices: boolean; numRows: number; services: EServices; time: Date; timeWindow: number }): Promise<IOpenLDBSVWSStationBoard>

getArrivalBoardByTIPLOC

getArrivalDepartureBoardByCRS

getArrivalDepartureBoardByTIPLOC

getDepBoardWithDetails

  • getDepBoardWithDetails(__namedParameters: { _params: _params; numRows: number; time: string; timeOffset: number; timeWindow: number }): Promise<IOpenLDBSVWSStationBoard>
  • Parameters

    • __namedParameters: { _params: _params; numRows: number; time: string; timeOffset: number; timeWindow: number }
      • _params: _params
      • numRows: number
      • time: string
      • timeOffset: number
      • timeWindow: number

    Returns Promise<IOpenLDBSVWSStationBoard>

getDepartureBoardByCRS

getDepartureBoardByTIPLOC

getDisruptionList

  • getDisruptionList(__namedParameters: { _params: _params }): Promise<string>

getFastestDepartures

getFastestDeparturesWithDetails

getHistoricDepartureBoard

getHistoricServiceDetails

getHistoricTimeLine

  • getHistoricTimeLine(__namedParameters: { _params: _params }): Promise<string>

getNextDepartures

getNextDeparturesWithDetails

getServiceDetailsByRid

Private logToConsole

  • logToConsole(message?: string | object): void
  • Parameters

    • Default value message: string | object = "No message"

    Returns void

Private mapParamsToSOAPXml

queryHistoricServices

  • queryHistoricServices(__namedParameters: { _params: _params; timeFilter: Date }): Promise<string>
  • Parameters

    • __namedParameters: { _params: _params; timeFilter: Date }
      • _params: _params
      • timeFilter: Date

    Returns Promise<string>

queryServices

Generated using TypeDoc