UNPKG

raptor-journey-planner

Version:

Implementation of the Round bAsed Public Transit Optimized Router (Raptor) journey planning algorithm.

19 lines (18 loc) 577 B
import type { TransferPatternIndex } from "./results/StringResults"; import type { Pool } from "mysql2/promise"; /** * Access to the transfer_patterns table in a mysql compatible database */ export declare class TransferPatternRepository { private readonly db; constructor(db: Pool); /** * Store every transfer pattern in the tree */ storeTransferPatterns(patterns: TransferPatternIndex): Promise<void>; private retryQuery; /** * Create the transfer pattern table if it does not already exist */ initTables(): Promise<void>; }