s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
52 lines • 1.27 kB
TypeScript
/**
*
* Describes the type of fare media used.
* 0 - None
* 1 - Physical paper ticket
* 2 - Physical transit card
* 3 - cEMV (contactless)
* 4 - Mobile app
*/
export declare enum GTFSFareMediaType {
None = 0,
PhysicalPaperTicket = 1,
PhysicalTransitCard = 2,
CEMV = 3,
MobileApp = 4
}
/**
* # Fare Media
*
* **Optional**
* Describes physical or virtual holders used for the representation and validation of a fare product.
*/
export declare class GTFSFareMedia {
/**
* **Required**
* Identifies a fare media (`fare_media_id`).
*/
id: string;
/**
* **Optional**
* Rider-facing name for this fare media.
*/
name?: string;
/**
* **Required**
* Type of fare media. One of:
* - 0 = None
* - 1 = Physical paper ticket
* - 2 = Physical transit card
* - 3 = cEMV (contactless)
* - 4 = Mobile app
*/
type: GTFSFareMediaType;
/** @param data - the parsed GTFS CSV data */
constructor(data: Record<string, string>);
}
/**
* @param input - the input string to parse from
* @returns - an array of GTFSFareMedias
*/
export declare function parseGTFSFareMedias(input: string): Record<string, GTFSFareMedia>;
//# sourceMappingURL=fareMedia.d.ts.map