Constructors
Methods
getAllSegmentsIds
getAllSegmentsIds(): number[] Returns number[]
getPathID
getPathID(): null | number Returns null | number
isJunctionBoxTurn
isJunctionBoxTurn(): boolean Returns boolean
toJSON
toJSON(): { id: { fromSegFwd: boolean; fromSegID: number; toSegFwd: boolean; toSegID: number; }; instructionOpCode: null | OP_CODE_TYPE; lanes: | null | { angleOverride: null | number; fromLaneIndex: number; guidanceMode: LaneGuidanceModes; instructionStrategy: undefined | InstructionStrategies; laneArrowAngle: null | number; toLaneIndex: number; }; navigable: boolean; restrictions: { defaultType: null | RESTRICTION_TYPE; description: undefined | null | string; driveProfiles: { [key: string]: DriveProfileAttributes[] }; editable: boolean; timeFrames: { daysOfMonth: null | DAYS_OF_MONTH; endDate: null | string; fromTime: null | string; repeatYearly: null | boolean; startDate: null | string; timeZone: null | string; toTime: null | string; weekdays: null | number; }[]; }[]; segmentPath: number[];} Returns {
id: {
fromSegFwd: boolean;
fromSegID: number;
toSegFwd: boolean;
toSegID: number;
};
instructionOpCode: null
| OP_CODE_TYPE;
lanes:
| null
| {
angleOverride: null
| number;
fromLaneIndex: number;
guidanceMode: LaneGuidanceModes;
instructionStrategy: undefined | InstructionStrategies;
laneArrowAngle: null | number;
toLaneIndex: number;
};
navigable: boolean;
restrictions: {
defaultType: null
| RESTRICTION_TYPE;
description: undefined | null | string;
driveProfiles: { [key: string]: DriveProfileAttributes[] };
editable: boolean;
timeFrames: {
daysOfMonth: null | DAYS_OF_MONTH;
endDate: null | string;
fromTime: null | string;
repeatYearly: null | boolean;
startDate: null | string;
timeZone: null | string;
toTime: null | string;
weekdays: null | number;
}[];
}[];
segmentPath: number[];
}
verticesEqual
verticesEqual(o: Turn): boolean
withPathID
withPathID(pathId: null | number): Turn
withUnknownTurnData
withUnknownTurnData(): Turn
Static
parseID
parseID(turnId: string): null | { fromVertex: Vertex; toVertex: Vertex }