Skip to content

Instantly share code, notes, and snippets.

@drewda
Last active February 17, 2023 20:28
Show Gist options
  • Save drewda/b454c5f5c21ba41ca6d4c029cec88533 to your computer and use it in GitHub Desktop.
Save drewda/b454c5f5c21ba41ca6d4c029cec88533 to your computer and use it in GitHub Desktop.
SF Bay Area Regional GTFS Feed migration from fare_containers.txt to fare_payment_options.txt

fare_containers.txt

as defined in https://bit.ly/gtfs-fares

currently published in SF Bay Area Regional GTFS Feed: https://api.511.org/transit/datafeeds?operator_id=RG&api_key=xxx

fare_container_id,fare_container_name,amount,minimum_initial_purchase,currency
clipper,Clipper,3,,USD
munimobile,SFMTA MuniMobile,0,,USD
ezfare,VTA VTA EZFare,0,,USD
tokentransit,Token Transit,0,,USD
cash,Cash,0,,USD

fare_media.txt

as defined in https://github.com/google/transit/pull/355/commits/68c98db0ffbbbad45a605f17b26de2eee0af597b

fare_medium_id,fare_medium_name,fare_medium_type
clipper,Clipper,2
munimobile,SFMTA MuniMobile,4
ezfare,VTA VTA EZFare,4
tokentransit,Token Transit,4
cash,Cash,0

fare_products.txt

header will change from:

fare_product_id,fare_product_name,amount,currency,duration_start,duration_amount,duration_unit,duration_type,rider_category_id,fare_container_id

to:

fare_product_id,fare_product_name,amount,currency,duration_start,duration_amount,duration_unit,duration_type,rider_category_id,fare_medium_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment