UNPKG

ojp-sdk-v1

Version:

OJP (Open Journey Planner) Javascript SDK

21 lines (20 loc) 745 B
import { XMLElement } from 'xmlbuilder'; import { TreeNode } from '../xml/tree-node'; import { XML_Config } from '../types/_all'; interface PublicTransportSubMode { key: string; value: string; } export declare class PublicTransportMode { ptMode: string; subMode: PublicTransportSubMode | null; name: string | null; shortName: string | null; isDemandMode: boolean; constructor(ptMode: string, subMode: PublicTransportSubMode | null, name: string | null, shortName: string | null); static initWithServiceTreeNode(serviceTreeNode: TreeNode): PublicTransportMode | null; isRail(): boolean; hasPrecisePolyline(): boolean; addToXMLNode(parentNode: XMLElement, xmlConfig: XML_Config): void; } export {};