UNPKG

ojp-sdk-legacy

Version:

OJP (Open Journey Planner) Javascript SDK (legacy version)

18 lines (17 loc) 879 B
import { TreeNode } from '../xml/tree-node'; import { StopPoint } from '../trip/leg/timed-leg/stop-point'; import { JourneyService } from '../journey/journey-service'; import { Location } from '../location/location'; import { PtSituationElement } from '../situation/situation-element'; import { XML_Config } from '../types/_all'; export type StationBoardType = 'Departures' | 'Arrivals'; export declare class StopEvent { journeyService: JourneyService; stopPoint: StopPoint; prevStopPoints: StopPoint[]; nextStopPoints: StopPoint[]; constructor(stopPoint: StopPoint, journeyService: JourneyService); static initWithTreeNode(treeNode: TreeNode, xmlConfig: XML_Config): StopEvent | null; patchStopEventLocations(mapContextLocations: Record<string, Location>): void; patchSituations(mapContextSituations: Record<string, PtSituationElement>): void; }