-
Notifications
You must be signed in to change notification settings - Fork 213
Introduce boarding permissions to specify the carriage of vehicles at per-stop granularity #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+112
−4
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
gtfs/spec/en/examples/boarding-permissions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| ## Introduction | ||
|
|
||
| The examples below describe how to use `stop_times.txt` and `boarding_permissions.txt` effectively to describe where and when passengers can bring a vehicle on board. | ||
|
|
||
| ### Example: London Underground | ||
|
|
||
| London Underground does not allow bicycles to be carried in the "deep tube" sections of the network, and only allows bicycles to be carried outside peak hours on Monday to Friday. | ||
|
|
||
| These can be specified in the following way, using trips on the Jubilee line as an example where the "deep tube" runs between Finchley Road and Canning Town: | ||
|
|
||
| `stop_times.txt` | ||
|
|
||
| | `trip_id` | `service_id` | `stop_id` | `stop_sequence` | `boarding_permission_id` | | ||
| |-----------|--------------|-----------------|-----------------|--------------------------| | ||
| | 924 | Mon to Fri | Stanmore | `0` | `tfl_weekday` | | ||
| | 924 | Mon to Fri | Canons Park | `1` | `tfl_weekday` | | ||
| | ... | ... | ... | ... | ... | | ||
| | 924 | Mon to Fri | West Hampstead | `9` | `tfl_weekday` | | ||
| | 924 | Mon to Fri | Finchley Road | `10` | `deep_tube` | | ||
| | 924 | Mon to Fri | Swiss Cottage | `11` | `deep_tube` | | ||
| | 924 | ... | ... | ... | ... | | ||
| | 924 | Mon to Fri | North Greenwich | `23` | `deep_tube` | | ||
| | 924 | Mon to Fri | Canning Town | `24` | `tfl_weekday` | | ||
| | 924 | Mon to Fri | West Ham | `25` | `tfl_weekday` | | ||
| | 924 | Mon to Fri | Stratford | `26` | `tfl_weekday` | | ||
| | 925 | Sun | Stanmore | `0` | `tfl_weekend` | | ||
| | 925 | Sun | Canons Park | `1` | `tfl_weekend` | | ||
| | ... | ... | ... | ... | ... | | ||
| | 925 | Sun | West Hampstead | `9` | `tfl_weekend` | | ||
| | 925 | Sun | Finchley Road | `10` | `deep_tube` | | ||
| | 925 | Sun | Swiss Cottage | `11` | `deep_tube` | | ||
| | 925 | ... | ... | ... | ... | | ||
| | 925 | Sun | North Greenwich | `23` | `deep_tube` | | ||
| | 925 | Sun | Canning Town | `24` | `tfl_weekend` | | ||
| | 925 | Sun | West Ham | `25` | `tfl_weekend` | | ||
| | 925 | Sun | Stratford | `26` | `tfl_weekend` | | ||
|
|
||
| `boarding_permissions.txt` | ||
|
|
||
| | `boarding_permission_id` | `vehicle` | `carriage_permission` | `start_time` | `end_time` | | ||
| |--------------------------|-----------|-----------------------|--------------|------------| | ||
| | tfl_weekday | `1` | `1` | `07:30:00` | `09:30:00` | | ||
| | tfl_weekday | `1` | `1` | `16:00:00` | `19:00:00` | | ||
| | tfl_weekday | `1` | `0` | | | | ||
| | tfl_weekend | `1` | `0` | | | | ||
| | deep_tube | `1` | `1` | | | | ||
|
|
||
| In the above table, `deep_tube` is used for all stop times where bikes cannot be carried further at any time, | ||
| `tfl_weekday` is used for all stop times where bikes cannot be carried during peak hours, but can be carried at other times without reservation, | ||
| and `tfl_weekend` is used for all stop times where bikes can be freely carried. | ||
|
|
||
| ### Example: ferries which do not accept foot passengers | ||
|
|
||
| The following ferry does not accept foot passengers. Passengers with a bike or a motorcycle can turn up without making a reservation, | ||
| but passenger with a car must book with the agency to arrange pick up and drop off at specific piers. | ||
|
|
||
| `stop_times.txt` | ||
|
|
||
| | `trip_id` | `stop_id` | `stop_sequence` | `pickup_type` | `drop_off_type` | `boarding_permission_id` | | ||
| |-----------|-----------|-----------------|---------------|-----------------|--------------------------| | ||
| | X | A | 0 | 1 | 1 | ferry | | ||
| | X | B | 1 | 1 | 1 | ferry | | ||
| | X | C | 2 | 1 | 1 | ferry | | ||
| | X | D | 3 | 1 | 1 | ferry | | ||
| | X | E | 4 | 1 | 1 | ferry | | ||
|
|
||
| `boarding_permissions.txt` | ||
|
|
||
| | `boarding_permission_id` | `vehicle` | `pickup_permission` | `drop_off_permission` | | ||
| |--------------------------|-----------|---------------------|-----------------------| | ||
| | ferry | 1 | 0 | 0 | | ||
| | ferry | 2 | 0 | 0 | | ||
| | ferry | 3 | 2 | 2 | |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.