-
Notifications
You must be signed in to change notification settings - Fork 0
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
Modify types of railways that constitute rail_access #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're now actively forking from upstream, we should look into updating the tests to cover our use-cases, then plug the test suite into the Github actions.
We should merge this as-is, I can start looking into the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the tests, are we sure that would be enough to allow the construction paths?
I think for our use case, we don't need to worry about this at the moment unless Matthew is able to find a way that is tagged with I can take a look at the test further, but in the |
Related to our slack conversation about making the frontend configurable through the yaml file, I think I can refactor this work to again allow better customization through the yaml / json profiles instead of hard coding changes in the codebase. |
The part I worry about is that the construction paths will still be lumped into the |
Could you rebase against master to pick up the new setup? You may need to squash your commits into a valid message. |
806546d
to
242756f
Compare
I think the reason that this is not an issue is that the {
"distance_influence": 0,
"priority": [
{ "if": "!rail_access", "multiply_by": "0" }
],
"speed": [
{ "if": "true", "limit_to": "rail_average_speed" }
]
} Because of that, the parser that lumps construction ways in to |
done |
I spoke with @davidmh over tuple. It looks like we need to modify the |
@davidmh let's hold off on merging this until I add a test for my changes |
The commit I pushed should cover that, can you confirm? |
It does. I'm going to add one for |
- add test for narrow gauge ways - the ways that are allowed and disallowed are defined in the paper doc https://paper.dropbox.com/doc/Rail-routing-types-and-appearances--CcscJphcnWQ4gQHZUZ7Gkcn7Ag-K1oQPVSL3s8eXf6SLyyow
We want to properly extract and categorize paths marked as construction, instead of `other`, so we can set the corresponding style in the mvt layer.
1b8f1cd
to
416e7aa
Compare
@davidmh I think this is ready to merge |
This PR modifies the RailAccessParser to include and exclude the various OSM Railway types that we need to consider for the Remix rail routing product. See https://paper.dropbox.com/doc/Rail-routing-types-and-appearances--CcoTAuntwCvKSa99WV5edFPyAg-K1oQPVSL3s8eXf6SLyyow for more information about what we want to include and exclude.
After this change merges, the value of rail_access in the various custom costing profiles will change to include everything in the Set.
This addresses https://ridewithvia.atlassian.net/browse/REM-8628
A follow up PR will be needed in the monorepo to bust the cache on the curl request made to this repo in the dockerfile