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

Suggest adding an entrance=* node to fix 'disconnected highway' errors #10729

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

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Feb 4, 2025

Closes #6341

If an isolated path or road connects to a building outline, the validator has a new autofix suggestion, which adds entrance=yes or amenity=parking_entrance to the node:

image

@k-yle k-yle added the validation An issue with the validation or Q/A code label Feb 4, 2025
Copy link
Collaborator

@tordans tordans left a comment

Choose a reason for hiding this comment

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

Thanks for this, I think it is a good addition.

Does https://github.com/openstreetmap/iD/pull/10729/files#diff-aa67428c964bd0d0ac6939c0545ffa404cbc3237b1dffec3b2a22491fbac8988R232-R234 mean that this suggestion will either suggest entrance=yes for path like highways and otherwise amenity=parking_entrance?

I wonder if this is the best second option in most cases.

In Berlin, we commonly use barrier=gate for those hw=service ways that connect to a building

Parking entrance is also present sometimes, though https://www.openstreetmap.org/node/8003765396

@k-yle
Copy link
Collaborator Author

k-yle commented Feb 4, 2025

Does https://github.com/openstreetmap/iD/pull/10729/files#diff-aa67428c964bd0d0ac6939c0545ffa404cbc3237b1dffec3b2a22491fbac8988R232-R234 mean that this suggestion will either suggest entrance=yes for path like highways and otherwise amenity=parking_entrance?

Yes. Maybe this autofix should only apply to path-like ways? I suspect that isolated vehiclular ways are quite rare, compared to isolated pathways

@tordans
Copy link
Collaborator

tordans commented Feb 4, 2025

Yes. Maybe this autofix should only apply to path-like ways?

Maybe to make this PR easier to merge because I consider this case very clear.

I suspect that isolated vehiclular ways are quite rare, compared to isolated pathways

Actually, we have many such cases in Berlin where a barrier=gate (and maybe barrier=entrance – no gate, just no one added the building passage way, yet) would be welcome additions. See those lines in https://www.openstreetmap.org/#map=19/52.471610/13.444500 for example.

FYI: Those service ways are important data that we add in Berlin to have data that we can use during parking pane processing (https://parkraum.osm-verkehrswende.org/). But those tags at the building are left out often because its already a lot of clicks to add the driveway.

@k-yle
Copy link
Collaborator Author

k-yle commented Feb 12, 2025

I've removed the amenity=parking_entrance logic, now this PR only considers path-like ways

@tyrasd
Copy link
Member

tyrasd commented Feb 13, 2025

Hm… I'm not convinced this is a good idea for the disconnected_way validator: Even after adding the entrance information, the way itself is still not connected to the rest of the road/path network. As far as I can see, the warning is suppressed in the case of the presence of an entrance node because there are some edge cases of false positives (like a path connecting two buildings, see #3906) that could not be detected in a better way. Maybe it also helps with false positives of mapped indoor corridors, and similar situations (although I would also argue that even in those cases there should be a connection to the outside routable network).

So, wouldn't it be better to have this as a dedicated validation rule that checks for missing entrances on highway<->building intersections? As suggested in #6341 (comment) by @1ec5

@1ec5
Copy link
Collaborator

1ec5 commented Feb 13, 2025

Either seems reasonable to me, but now that you mention it, the suggestion is incongruent with the warning message, which implies that a road or path connection is required. I guess the explanatory text would need to mention building entrances as an exception.

Another case to consider is a footpath that you can only access from within a building, such as in a courtyard or backyard.

@openstreetmap openstreetmap deleted a comment from 66045498 Feb 13, 2025
@tyrasd tyrasd added this to the v2.33 milestone Feb 13, 2025
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.

Disconnected highway warning should suggest adding entrance nodes
4 participants