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

Offer to connect sidewalk to service road without tagging crossing #9650

Merged
merged 2 commits into from
May 25, 2023

Conversation

1ec5
Copy link
Collaborator

@1ec5 1ec5 commented May 25, 2023

When a driveway or other service road crosses a sidewalk, offer to either connect them without any tags or connect them with highway=crossing. Previously, there was only one option that implied nothing about tags but added highway=crossing anyways:

Driveway crosses Sidewalk Service Road crosses Sidewalk

When a service road crosses an ordinary footpath, or when a larger road crosses a sidewalk, continue to offer just the option to connect them with highway=crossing, but with the same icon as the crossing presets. Similarly, when a stream crosses a sidewalk, show the same icon as the Ford preset:

Foot Path crosses Service Road Residential Road crosses Sidewalk Sidewalk crosses Stream

Fixes #8463.

@1ec5 1ec5 added the validation An issue with the validation or Q/A code label May 25, 2023
@1ec5 1ec5 self-assigned this May 25, 2023
@@ -435,6 +441,10 @@ export function validationCrossingWays(context) {

if (connectionTags) {
fixes.push(makeConnectWaysFix(this.data.connectionTags));
let lessLikelyConnectionTags = tagsForConnectionNodeIfAllowed(entities[0], entities[1], graph, true);
if (lessLikelyConnectionTags && JSON.stringify(connectionTags) !== JSON.stringify(lessLikelyConnectionTags)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When a footway crosses a major road, it would be possible to offer a crossing=no connection as a less likely option. However, crossing=no doesn’t have a preset yet (openstreetmap/id-tagging-schema#548) and looks just like highway=crossing on the map, which could be confusing.

Copy link
Member

@tyrasd tyrasd May 25, 2023

Choose a reason for hiding this comment

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

offer a crossing=no connection

I agree that the tagging-schema would need to support this first in order to make sense. Let's keep that option in mind for a later stage.

Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks 👍

@@ -435,6 +441,10 @@ export function validationCrossingWays(context) {

if (connectionTags) {
fixes.push(makeConnectWaysFix(this.data.connectionTags));
let lessLikelyConnectionTags = tagsForConnectionNodeIfAllowed(entities[0], entities[1], graph, true);
if (lessLikelyConnectionTags && JSON.stringify(connectionTags) !== JSON.stringify(lessLikelyConnectionTags)) {
Copy link
Member

@tyrasd tyrasd May 25, 2023

Choose a reason for hiding this comment

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

offer a crossing=no connection

I agree that the tagging-schema would need to support this first in order to make sense. Let's keep that option in mind for a later stage.

@tyrasd tyrasd merged commit e4641b5 into develop May 25, 2023
4 checks passed
@tyrasd tyrasd deleted the 1ec5-crossing-sidewalk-driveway-8463 branch May 25, 2023 11:17
tyrasd added a commit that referenced this pull request May 25, 2023
@tyrasd tyrasd added this to the 2.26 milestone May 26, 2023
bhousel added a commit to facebook/Rapid that referenced this pull request Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation An issue with the validation or Q/A code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not set highway=crossing on node when connecting service=driveway
2 participants