s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
35 lines • 1 kB
TypeScript
/**
* # Levels
*
* **Conditionally Required**
* Describes levels in a station, useful with `pathways.txt`.
* Required if `pathways` include elevators (`pathway_mode=5`), otherwise optional.
*/
export declare class GTFSLevel {
/**
* **Required**
* Identifies a level in a station (`level_id`).
*/
id: string;
/**
* **Required**
* Numeric index indicating this level's relative position:
* - 0 for ground level
* - Positive above ground
* - Negative below ground
*/
levelIndex: number;
/**
* **Optional**
* Name of the level as displayed to the rider (e.g., "Mezzanine", "Platform").
*/
levelName?: 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 Level
*/
export declare function parseGTFSLevels(input: string): Record<string, GTFSLevel>;
//# sourceMappingURL=levels.d.ts.map