ojp-sdk-legacy
Version:
OJP (Open Journey Planner) Javascript SDK (legacy version)
25 lines (24 loc) • 904 B
TypeScript
import { XML_Config } from "../types/_all";
import { TreeNode } from "../xml/tree-node";
import { LinkProjection } from "./link-projection";
export declare class PathGuidance {
sections: PathGuidanceSection[];
constructor(sections: PathGuidanceSection[]);
static initWithTreeNode(treeNode: TreeNode, xmlConfig: XML_Config): PathGuidance | null;
}
declare class PathGuidanceSection {
trackSection: TrackSection | null;
guidanceAdvice: string | null;
turnAction: string | null;
constructor();
static initWithSectionTreeNode(sectionTreeNode: TreeNode, xmlConfig: XML_Config): PathGuidanceSection;
}
declare class TrackSection {
linkProjection: LinkProjection | null;
roadName: string | null;
duration: string | null;
length: number | null;
constructor();
static initWithTrackSectionTreeNode(trackSectionTreeNode: TreeNode): TrackSection;
}
export {};