the parsed GTFS CSV data
Required
References a fare_products.fare_product_id.
The rider must possess/purchase this fare product for the described leg.
OptionalfromOptional
Identifies a departure area (areas.area_id) for this fare leg rule.
rule_priority is omitted and no matching from_area_id, empty matches “all but listed”.rule_priority exists, empty means departure area does not affect matching.OptionalfromOptional
References a timeframes.timeframe_group_id for the start of the fare leg.
An empty value means the start time does not affect matching.
OptionallegOptional
Identifies a group of entries in fare_leg_rules.txt that can be referenced
in fare_transfer_rules.from_leg_group_id or fare_transfer_rules.to_leg_group_id.
OptionalnetworkOptional
Identifies a route network (routes.network_id or networks.network_id) this rule applies to.
rule_priority is omitted and no matching network_id, empty matches “all but listed”.rule_priority exists, empty means network does not affect matching.OptionalruleOptional Defines the order of priority in which matching rules are applied.
OptionaltoOptional
Identifies an arrival area (areas.area_id) for this fare leg rule.
rule_priority is omitted and no matching to_area_id, empty matches “all but listed”.rule_priority exists, empty means arrival area does not affect matching.OptionaltoOptional
References a timeframes.timeframe_group_id for the end of the fare leg.
An empty value means the end time does not affect matching.
Fare Leg Rules
Optional Defines more granular fare rules for individual legs of travel (GTFS-Fares V2).
Use these rules by filtering on:
network_idfrom_area_idto_area_idfrom_timeframe_group_idto_timeframe_group_idMultiple matching strategies exist depending on the presence or absence of
rule_priority:rule_prioritydoes not exist, empty fields represent an inverse match against all possible values except those otherwise specified.rule_prioritydoes exist, empty fields mean the field does not affect matching.For matching an “effective fare leg” that spans multiple legs, see the specification for rules on using the first vs. last leg’s departure/arrival areas and timeframes.