UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

28 lines 848 B
/** * # Networks * * **Conditionally Forbidden** * Defines network identifiers. Used to group routes under a named network * for fare leg rules. This file is forbidden if `network_id` exists in `routes.txt`, * otherwise optional. */ export declare class GTFSNetwork { /** * **Required** * Identifies a network (`network_id`). Must be unique in `networks.txt`. */ id: string; /** * **Optional** * The name of the network as used by the local agency and its riders. */ name?: string; /** @param data - the parsed GTFS CSV data */ constructor(data: Record<string, string>); } /** * @param input - the input string to parse from * @returns - an array of GTFSs */ export declare function parseGTFSNetworks(input: string): Record<string, GTFSNetwork>; //# sourceMappingURL=networks.d.ts.map