Skip to content
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

Add direction groups for routes in agency routeConfig #574

Open
EddyIonescu opened this issue Feb 22, 2020 · 0 comments
Open

Add direction groups for routes in agency routeConfig #574

EddyIonescu opened this issue Feb 22, 2020 · 0 comments
Assignees
Labels
Backend Python and API stuff

Comments

@EddyIonescu
Copy link
Member

EddyIonescu commented Feb 22, 2020

Currently we can define default_directions for routes, where we set 0 to be Inbound and 1 to be Outbound. However, for some transit agencies like the TTC 0 means Eastbound or Northbound, while 1 means Westbound or Southbound. Then there are transit agencies (like Grand River Transit in Waterloo, Ontario) that use Inbound/Outbound for some routes and North/South/East/West for others.
While custom_directions could be used, this would require much less lines as there are about 200 routes, with a rough 50-50 split between east-west and north-south.
Currently:

default_directions:
  '0':
    title_prefix: Eastbound
  '1':
    title_prefix: Westbound

Proposed:

default_directions:
  '0':
    title_prefix: Eastbound
  '1':
    title_prefix: Westbound
custom_default_directions:
  'north-south':
    'routes': [
        '1', '3', '5', '6', '7', '9', '11', ...
    ]
    '0': "Northbound"
    '1': "Southbound"
  'inbound-outbound':
      ...
@EddyIonescu EddyIonescu added the Backend Python and API stuff label Feb 22, 2020
@EddyIonescu EddyIonescu self-assigned this Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Python and API stuff
Projects
None yet
Development

No branches or pull requests

1 participant