s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
28 lines • 734 B
TypeScript
/**
* # Areas
*
* **Optional**
* Defines area identifiers.
* Each record in `areas.txt` contains a unique `area_id` that can be referenced
* in `stop_areas.txt`.
*/
export declare class GTFSArea {
/**
* **Required**
* Identifies an area (`area_id`). Must be unique within `areas.txt`.
*/
areaId: string;
/**
* **Optional**
* Name of the area as displayed to the rider.
*/
areaName?: 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 Areas
*/
export declare function parseGTFSAreas(input: string): GTFSArea[];
//# sourceMappingURL=areas.d.ts.map