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.
Optional
fromOptional
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.Optional
fromOptional
References a timeframes.timeframe_group_id
for the start of the fare leg.
An empty value means the start time does not affect matching.
Optional
legOptional
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
.
Optional
networkOptional
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.Optional
ruleOptional Defines the order of priority in which matching rules are applied.
Optional
toOptional
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.Optional
toOptional
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_id
from_area_id
to_area_id
from_timeframe_group_id
to_timeframe_group_id
Multiple matching strategies exist depending on the presence or absence of
rule_priority
:rule_priority
does not exist, empty fields represent an inverse match against all possible values except those otherwise specified.rule_priority
does 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.