UNPKG

ojp-sdk-v1

Version:

OJP (Open Journey Planner) Javascript SDK

23 lines (22 loc) 1.18 kB
import { JourneyService } from '../../journey/journey-service'; import { StopPoint } from './timed-leg/stop-point'; import { TripLeg } from "./trip-leg"; import { Location } from '../../location/location'; import { PtSituationElement } from '../../situation/situation-element'; import { TreeNode } from '../../xml/tree-node'; import { XMLElement } from 'xmlbuilder'; import { XML_Config } from '../../types/_all'; export declare class TripTimedLeg extends TripLeg { service: JourneyService; fromStopPoint: StopPoint; toStopPoint: StopPoint; intermediateStopPoints: StopPoint[]; constructor(legIDx: number, service: JourneyService, fromStopPoint: StopPoint, toStopPoint: StopPoint, intermediateStopPoints?: StopPoint[]); static initWithTreeNode(legIDx: number, parentTreeNode: TreeNode): TripTimedLeg | null; patchLocations(mapContextLocations: Record<string, Location>): void; computeDepartureTime(): Date | null; computeArrivalTime(): Date | null; private computeStopPointTime; patchSituations(mapContextSituations: Record<string, PtSituationElement>): void; addToXMLNode(parentNode: XMLElement, xmlConfig: XML_Config): void; }