gis-tools-ts - v0.6.0
    Preparing search index...

    Class GTFSFareProduct

    Fare Products

    Optional Describes different fare products riders can purchase. Used by GTFS-Fares V2 to model fare product costs, media, and potential discounts for multi-leg journeys.

    Multiple rows with the same fare_product_id can exist, each paired with a different fare_media_id.

    Index

    Constructors

    • Parameters

      • data: Record<string, string>

        the parsed GTFS CSV data

      Returns GTFSFareProduct

    Properties

    amount: number

    Required The cost of the fare product. May be:

    • Negative: Transfer discount
    • Zero: Free fare
    • Positive: Standard fare cost
    currency: string

    Required Currency code (e.g., "USD", "EUR") for the cost of this product.

    fareMediaId?: string

    Optional Identifies a fare media (fare_media.fare_media_id) that can be employed to use this fare product. When empty, the fare media is unknown.

    fareProductName?: string

    Optional The name of the fare product as displayed to riders.

    id: string

    Required Identifies a fare product or set of fare products.