@golemio/pid
Version:
Golemio PID Module
36 lines (35 loc) • 1.16 kB
TypeScript
import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
/**
* Interface for the not-public vehicles configuration
* Used for ad-hoc/replacement vehicles (e.g., metro replacement buses)
* Loaded from Blob Storage
*/
export interface INotPublicVehicles {
/**
* Tram vehicle registration numbers
* Separated because trams and buses can have the same registration numbers
*/
tram: {
registrationNumbers: string[];
};
/**
* Road vehicle registration numbers (bus + trolleybus)
* Separated from tram because they can have the same registration numbers
*/
road: {
registrationNumbers: string[];
};
/**
* Whitelist of route IDs (line short names) that should be displayed
* even when they don't have a schedule
*/
routeIds: string[];
}
/**
* Helper type to determine if a route type is a road vehicle (bus or trolleybus)
*/
export declare function isRoadVehicleType(routeType: GTFSRouteTypeEnum): boolean;
/**
* Helper type to determine if a route type is a tram
*/
export declare function isTramVehicleType(routeType: GTFSRouteTypeEnum): boolean;