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

Refactor crossing presets #1044

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

arch0345
Copy link
Contributor

@arch0345 arch0345 commented Oct 28, 2023

This PR is an attempt to simplify crossing presets. As explained in this thread on the OSMUS Slack, the current options for crossings can be quite confusing.

I've made specific crossing presets with crossing=* tags unsearachable, with the only searchable options now being Crossing, Pedestrian Crossing, Cycle Crossing, and Cycle & Foot Crossing. I've also introduced a preset for path=crossing

@github-actions
Copy link

🍱 Preview the tagging presets of this pull request here: https://pr-1044--ideditor-presets-preview.netlify.app/id/dist/#locale=en.

@tordans
Copy link
Collaborator

tordans commented Oct 28, 2023

Note to self: Read up on what the matchScore does when the preset is unsearchable? I assume it can be removed...

@arch0345
Copy link
Contributor Author

I believe matchScore is also used to tell which preset name should show up in the feature menu when two presets have similar tags (ie Cycle Crossing and Cycle & Foot Crossing)

@1ec5
Copy link
Contributor

1ec5 commented Oct 28, 2023

For context, every now and then a less experienced mapper asks what the difference is between a “Pedestrian Crossing” and a “Marked Crossing”, especially since there’s also “Pedestrian Crossing With Traffic Signals”.

This change will continue the progression in #837 and #889. Reducing the number of “Crossing” presets will allows mappers to rely on the recent preset list without each slight variant of a crossing pushing another preset off the list.

For those who have become accustomed to the more specific presets, the loss of these presets may add to the number of clicks required to fully tag a crossing, but I don’t expect it to lead to a noticeable decline in tagging crossing details, because iD already has rendering rules and validation rules that encourage applying crossing subkeys. There has never been a fully complement of specific presets for styles of railway crossings, but crossing:* is very commonly tagged on them, maybe even more commonly than on pedestrian and cyclist crossings.

With this change, it’ll also be more straightforward to create regional variants of a smaller number of presets. #1030 only had to touch some templates, but some regions have well-known names for specific crossing configurations that go well beyond markings. It’s always been difficult to support these configurations because of the sheer number of crossing presets.

@tordans
Copy link
Collaborator

tordans commented Oct 28, 2023

@Bonkles I think I remember rapid has a shortcut to cycle through crossing presets. (Or maybe this is facebook/Rapid#1154?) — Will this update to the preset affect this feature?

@bhousel
Copy link
Member

bhousel commented Oct 28, 2023

Will this update to the preset affect this feature?

Yes this is facebook/Rapid#1154 / facebook/Rapid#1160
It is still under development, but when finished it will cycle through whatever the presets are, as identified by their presetID.

If the presets change, we can always override them, per facebook/Rapid#1182 - don't worry, I'm paying attention and thinking ahead 👍

@tordans
Copy link
Collaborator

tordans commented Oct 29, 2023

@bhousel

when finished it will cycle through whatever the presets are, as identified by their presetID.

Great, it looks like those can be specified regardless of their searchable status so the changes here will not conflict.

@tordans
Copy link
Collaborator

tordans commented Feb 16, 2024

FYI the next iD Community Meeting is earmarked to talk about the crossing presets https://wiki.openstreetmap.org/wiki/ID/Community_Chats/2024-02-28

Can you join @arch0345 @1ec5 so we can maybe get topic untangled?

@1ec5
Copy link
Contributor

1ec5 commented Feb 16, 2024

Unfortunately, I probably can’t make it at that time due to a conflict, but I think folks know how I feel about the various crossing tags by now. To clarify my comments in streetcomplete/StreetComplete#4886 (comment), I continue to think additional, non-Boolean values of crossing:signals=* would be worthwhile, but those values would benefit from a proper community discussion or vote. In the meantime, a checkbox would be fine; iD is perfectly capable of showing the raw value when it’s something other than a Boolean.

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.

None yet

4 participants