OptionalcacheOptional: Cache store for persisting processed GTFS databases Implement your own CacheStore or copy one from examples/cache/:
If not provided, caching is disabled.
OptionalcacheOptional: Cache expiration time in milliseconds Cached databases older than this will be invalidated Default: 7 days (604800000 ms)
OptionalcacheOptional: Data version string When changed, cached databases are invalidated and reprocessed Default: '1.0'
OptionaldatabasePre-loaded SQLite database as ArrayBuffer
OptionalonOptional: Progress callback for tracking load progress Useful for displaying progress in UI or web workers
OptionalrealtimeOptional: Array of GTFS-RT feed URLs for realtime data
OptionalskipOptional: Array of GTFS filenames to skip importing (e.g., ['shapes.txt']) Tables will be created but no data will be imported for these files
OptionalstalenessOptional: Staleness threshold in seconds (default: 120) Realtime data older than this will be excluded from queries
OptionalzipPath or URL to GTFS ZIP file
Required: database adapter factory. Use
createSqlJsAdapter()fromgtfs-sqljs/adapters/sql-jsfor the browser/Node sql.js path, or plug in a custom adapter (op-sqlite, expo-sqlite, better-sqlite3, …).