fare_attributes.md

June 12, 2018 ยท View on GitHub

Fare Attributes

Examples of how to specify various fare schemes can be found in the fares page.

  • Filename MUST be fare_attributes.txt
  • File MUST contain a record for each fare type.
  • File MUST be a valid CSV file.
  • The first line of each file MUST contain case-sensitive field names.
  • Field names MUST NOT contain tabs, carriage returns or new lines.

File MUST contain the following attributes:

Required AttributesDescription
fare_idContains an ID that uniquely identifies the fare class. The fare_id is dataset unique.
priceFloat. Fare price in the unit specified by currency_type
currency_typeString. Defines the currency used to pay the fare in ISO 4217 alphabetical currency codes
payment_methodWhen the fare must be paid:
0 - on board
1 - before boarding
transfersNumber of transfers permitted on this fare:
0 - none
1 - one
2 - two
(empty): If this field is empty, unlimited transfers are permitted

File MAY contain the following attributes:

Optional AttributesDescription
transfer_durationInteger length of time in seconds before transfer expires. Omit or leave empty if they do not.