R/netex_to_gtfs_fares.R
gtfs_add_fares_v1.RdBuilds the original-specification GTFS fare tables from parsed NeTEx fare files and attaches them to a GTFS object. A `zone_id` column is added to `stops` giving each stop its fare zone, and `fare_rules` maps each origin-zone / destination-zone pair on a route to a fare.
gtfs_add_fares_v1(gtfs, netex_list, payment_method = 0L)the GTFS object with `fare_attributes`, `fare_rules` and a `stops$zone_id` column added.
Because GTFS v1 stores a single `zone_id` per stop, this works cleanly for a single route; when several routes share a stop but place it in different fare zones only the first assignment is kept (with a warning).