Aller au contenu

Fare Media

Main files: fare_media.txt, fare_products.txt

Example: Translink (Vancouver)

Recall (Fares v2 Features): The fare products will be stored inside different fare media which are used to validate them when boarding public transit.

To specify which fare media are available for a transit agency, they have to be created in the table fare_media.txt, this is done as follows:

  1. Fill the fare_media_id column with a unique ID identifying the fare media.
  2. This is the Primary Key used to associate it with fare_products.txt.
  3. Fill the fare_media_name column with the rider-facing name of the fare media.
  4. Fill the fare_media_type column with the appropriate enum (0 = None, 1 = Physical Paper Ticket, 2 = Physical Transit Card, 3 = cEMV, 4 = Mobile App).

Consult the reference documentation for more information on the enums used in fare_media_type.

fare_media.txt

fare_media_id fare_media_name fare_media_type
cash Cash 0
contactless Contactless 3
compass_card Compass Card 2
compass_ticket Compass Ticket 2
wallet Mobile Wallet 3