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

Include route number in label of named route relations #10478

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

1ec5
Copy link
Collaborator

@1ec5 1ec5 commented Sep 24, 2024

When labeling a route relation that has a name=*, include its network=* and route number (ref=*) for disambiguation. This is identical to 4856eef by @k-yle. The only additional change is that we continue to show the name=* verbatim, without appending other details, if it looks like a PTv2-formatted description of the route. This should address the criticisms in #8707.

Fixes #8559.

@1ec5 1ec5 requested a review from k-yle September 24, 2024 21:04
@1ec5 1ec5 self-assigned this Sep 24, 2024
Comment on lines +766 to +767
network_ref_name: "{network} {ref}: {name}"
ref_name: "{ref}: {name}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sometimes encounter situations where it would be nice to also append from=*, to=*, and via=* for disambiguation – just like when the route has a ref=* instead of a name=*. Of course, the name might push all these extra details off out of view, but at least they’d appear in a tooltip as a last resort.

Copy link
Collaborator

@k-yle k-yle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think this is a nice solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show ref in the name of route relations
2 participants