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

🚀 FEAT: Align spec for transit routing change features to new route #35

Open
e-lo opened this issue Oct 28, 2024 · 0 comments
Open
Labels
🚀 feature New feature
Milestone

Comments

@e-lo
Copy link
Contributor

e-lo commented Oct 28, 2024

As a user coding changes to transit stop permissions, dwell times, or hard coded transit travel times, I'd like to be able to code these as a transit routing change rather than having to delete the route and then re-add it as a new route

The way it is

Transit routing changes currently only have the ability to turn a stop on/off. Note that as currently specified in the spec it is a generic array, so could have more information, but it isn't built in to a specific representation.

transit_routing_change:
  service:...
  routing:
    existing:
     - 1
     - 2
     - 3
    set:
      - 1
      - -2
      - 3

Whereas new routes can specify:

  • boarding: bool
  • alighting: bool
  • stop: bool
  • time_to_next_node_sec: int
  • dwell_sec: int
transit_route_addition:
  routes:
    - route_id: ...
      trips:
          headway_secs: ...
          routing:
            - 1:
                stop: true #when stop is set to True, defaults to allow both boarding and alighting
            - 2
            - 3:
                time_to_next_node_sec: 90
            - 4:
                stop: true # default to False, specify only when stopping
                alight: false  # default to True, specify only when not default
            - 5

Existing work-arounds

You can work-around this limitation by deleting a route and then re-adding it back in, although this would create different trip_ids.

The way it could be

transit_routing_change:
  service:...
  routing:
    existing:
     - 1
     - 2
     - 3
    set:
            - 1:
                stop: true #when stop is set to True, defaults to allow both boarding and alighting
            - 2
            - 3:
                time_to_next_node_sec: 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant