UNPKG

minotor

Version:

A lightweight client-side transit routing library.

12 lines (11 loc) 553 B
import { ServiceRoutesMap } from '../timetable/timetable.js'; import { GtfsProfile } from './parser.js'; export type GtfsRouteType = number; /** * Parses a GTFS routes.txt file and returns a map of all the valid routes. * * @param routesStream A readable stream for the GTFS routes.txt file. * @param profile A configuration object defining the specificities of the GTFS feed. * @returns A map of all the valid routes. */ export declare const parseRoutes: (routesStream: NodeJS.ReadableStream, profile?: GtfsProfile) => Promise<ServiceRoutesMap>;