UNPKG

s2-tools

Version:

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

65 lines 1.89 kB
/** * # Feed Information * * **Conditionally Required** * Contains information about the dataset itself (publisher, version, etc.). * - Required if `translations.txt` is used. * - Recommended otherwise. */ export declare class GTFSFeedInfo { /** * **Required** * Full name of the organization that publishes the dataset. */ feedPublisherName: string; /** * **Required** * URL of the dataset publisher's website. */ feedPublisherUrl: string; /** * **Required** * Default language code for the text in this dataset. * For multilingual datasets, use "mul" and translations.txt for further detail. */ feedLang: string; /** * **Optional** * Language used if the consumer does not know the rider’s language, often "en". */ defaultLang?: string; /** * **Recommended** * First date of service the dataset covers, in `YYYYMMDD` format. */ feedStartDate?: string; /** * **Recommended** * Last date of service the dataset covers, in `YYYYMMDD` format. * Must not precede `feed_start_date` if both are given. */ feedEndDate?: string; /** * **Recommended** * Current version identifier for this GTFS dataset. */ feedVersion?: string; /** * **Optional** * Email address for technical contact about the dataset. */ feedContactEmail?: string; /** * **Optional** * URL for technical contact or support form regarding the dataset. */ feedContactUrl?: 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 GTFSFeedInfos */ export declare function parseGTFSFeedInfos(input: string): Record<string, GTFSFeedInfo>; //# sourceMappingURL=feedInfo.d.ts.map