Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add variable fares by time or day (google#357)
* Added timeframes * Add date-based fares * Update timeframes.txt description * Change end time from required to optional * Records with the same timeframe id must cover a 24h period * no overlap * remove requirement on 24h coverage and overlapping * fix typo * Revert changes in timeframes.end_time * move service_id to timeframes.txt * Move timeframes to the fares v2 section * rename timeframe_id to timeframe_group_id * place timeframes.txt with other Fares v2 files * Rename from/to fields + change empty semantics - Rename from_timeframe_id and to_timeframe_id to start_timeframe_group_id and to_timeframe_group_id - Change empty semantics so that an empty entry means the fare isn't affected (as opposed to the "empty means everything except") * add line break * Add timeframes description * Make timeframe fields required * service_id references calendar or calendar_dates * Add requirements - the whole day must be covered with timeframes if one is defined - there should not be overlapping time frames with the same timeframe_group_id and service_id * typo * Update timeframe fields description * end time is not included in the interval * Add timeframe_type field * Overlapping time frames must not be defined for the same timeframe_group_id and service_id * introduce override Introduce an override field in fare_leg_rules and remove the requirement of needing the whole day covered with timeframes if one is defined. * improve override description * Revert "improve override description" This reverts commit d4afc6e. * improve override description * update timeframe fields description changes "a row" to "one row" * remove timeframe fields for no exact matched found * Update descriptions for empty values: - removed the "If there are no matching `fare_leg_rules.start_timeframe_group_id` values to the `timeframe_group_id` being filtered..." - added "that rule will match a particular leg if either start_timeframe_group_id is empty, or if there exists at least a row in `timeframes.txt` where all..." * Both values need to be empty or neither should be empty as discussed in the last working group meeting * Change to local time semantics As discussed in the working group meeting * Changed name start/end_timeframe_group_id As discussed in working group meeting * Remove timeframe_type & priority fields Changes as discussed in working group meeting * revise "start" to "end" * Remove "initial" after Gavriel's comment Gavriel pointed out in the proposal document that "initial" is un-necessary https://docs.google.com/document/d/1N3WpgAh2OxPuE5Vvjbd6mjvKK42M7mSVdxscVvzP8SU/edit * Remove unnecessary empty description * Changes based on Jeremy's feedback Comment google#357 (comment) 1. Specify "time of day" of fare leg's start/end time 2. Clarify the start_time/end_time are in timeframes.txt Additional: change "row" to " "record" to synchronize the rest of GTFS. * Modify empty wording Based on Hal's suggestion - google#357 (comment) * Move overlapping requirement out of service_id description --------- Co-authored-by: omar-kabbani <[email protected]> Co-authored-by: Tzu-Jen Chan <[email protected]>
- Loading branch information