Methods
findLine
- findLine(lineID: string, withML?: false, ...params: any[]): Promise<undefined | ILine>
- findLine(lineID: string, withML: true, ...params: any[]): Promise<undefined | ILineWithMLInfo>
-
Parameters
-
lineID: string
-
Optional withML: false
-
Rest ...params: any[]
Returns Promise<undefined | ILine>
-
Parameters
-
lineID: string
-
withML: true
-
Rest ...params: any[]
findStop
- findStop(stopName: string, routeCodes: string[], ...params: any[]): Promise<{ RouteStopOrder: string; StopAmea: string; StopCode: string; StopDescr: string; StopDescrEng: string; StopHeading: string; StopID: string; StopLat: string; StopLng: string; StopStreet: null | string; StopStreetEng: null | string; StopType: string; routes: string[] }[]>
-
Parameters
-
stopName: string
-
routeCodes: string[]
-
Rest ...params: any[]
Returns Promise<{ RouteStopOrder: string; StopAmea: string; StopCode: string; StopDescr: string; StopDescrEng: string; StopHeading: string; StopID: string; StopLat: string; StopLng: string; StopStreet: null | string; StopStreetEng: null | string; StopType: string; routes: string[] }[]>
getDirectionsOfLine
- getDirectionsOfLine(lineCode: string, ...params: any[]): Promise<{ directions: IDirection[]; isCycle: boolean }>
-
Parameters
-
lineCode: string
-
Rest ...params: any[]
Returns Promise<{ directions: IDirection[]; isCycle: boolean }>
getLinesOfStop
- getLinesOfStop(stopCode: string, ...params: any[]): Promise<null | ILineOfStop[]>
-
Parameters
-
stopCode: string
-
Rest ...params: any[]
Returns Promise<null | ILineOfStop[]>
Searches a specific line according to its name (LineID)