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

    Class GTFSFareRule

    Fare Rules

    Optional Defines how fares in fare_attributes.txt apply to an itinerary. For more complex fare structures, multiple combinations of fields (route, origin, destination, zones) can be used.

    Index

    Constructors

    • Parameters

      • data: Record<string, string>

        the parsed GTFS CSV data

      Returns GTFSFareRule

    Properties

    containsId?: string

    Optional All zones traveled during the trip using this fare class. If multiple zones must be passed, each is listed separately.

    destinationId?: string

    Optional Destination zone (stops.zone_id). If a fare class applies to multiple destination zones, each zone requires its own record.

    fareId: string

    Required Identifies a fare class (fare_attributes.fare_id).

    originId?: string

    Optional Origin zone (stops.zone_id). If a fare class applies to multiple origin zones, each zone requires its own record.

    routeId?: string

    Optional Route associated with this fare. If multiple routes share the same fare, add multiple records in fare_rules.txt.