Skip to content

highlight kerbs - #7040

Open
paulklie wants to merge 1 commit into
streetcomplete:masterfrom
paulklie:kerb2
Open

paulklie wants to merge 1 commit into
streetcomplete:masterfrom
paulklie:kerb2

Conversation

@paulklie

@paulklie paulklie commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Implements #6525

Kind of forgot this one, it highlights other kerbs while answering a kerb related quest. Making it easier to guage which height other users have answered.
ping @peternewman

@matkoniecz

Copy link
Copy Markdown
Member

have you tested it with kerb=no ? Even if it works now it may be worth excluding them

https://wiki.openstreetmap.org/wiki/Key:kerb mentions stuff like adding kerb=raised to highway=bus_stop - is it going to confuse rendering?

@westnordost westnordost added the feedback required more info is needed, issue will be likely closed if it is not provided label Aug 28, 2026
@paulklie

Copy link
Copy Markdown
Collaborator Author

am waiting for answers from @peternewman since they requested this change.

if (!crossingFilter.matches(element)) false else null

override fun getHighlightedElements(element: Element, mapData: MapDataWithGeometry) =
mapData.filter("nodes, ways with kerb or barrier=kerb")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
mapData.filter("nodes, ways with kerb or barrier=kerb")
mapData.filter("nodes, ways with kerb or barrier = kerb")

}

override fun getHighlightedElements(element: Element, mapData: MapDataWithGeometry) =
mapData.filter("nodes, ways with kerb or barrier=kerb")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
mapData.filter("nodes, ways with kerb or barrier=kerb")
mapData.filter("nodes, ways with kerb or barrier = kerb")

}

override fun getHighlightedElements(element: Element, mapData: MapDataWithGeometry) =
mapData.filter("nodes, ways with kerb or barrier=kerb")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
mapData.filter("nodes, ways with kerb or barrier=kerb")
mapData.filter("nodes, ways with kerb or barrier = kerb")

@peternewman

Copy link
Copy Markdown
Collaborator

am waiting for answers from @peternewman since they requested this change.

I'm not sure what answers you require from me @paulklie ? It looks like I was the last to reply on the linked issue?

The only minor oddity I mentioned there was that a node tagged with highway=crossing and kerb= rendered as both kerb and crossing in pink in your preview before, such as this one, unhelpfully now deleted:
https://www.openstreetmap.org/node/12660076709/history/5

Plus the stretch goal/future enhancement of how best to show it on a way (e.g. should it repeat the symbol along the way's length) and the challenge of a node (which is also a kerb) intersecting with the way, but I still personally feel it's a sufficient improvement they could be later fixes.

I'm also still not sure it needs adding to AddCrossingKerbHeight as the question is then about a crossing (not a kerb) node, plus in theory it shouldn't be asked there, although personally I'm not entirely certain that filtering is working as intended. But there's probably no harm given you could have some complicated interplay with adjacent cycle land crossings.
https://github.com/paulklie/StreetComplete/blob/a0f8afeb35117ba875ce7c5edd63cf92fc1d09e2/app/src/androidMain/kotlin/de/westnordost/streetcomplete/quests/crossing_kerb_height/AddCrossingKerbHeight.kt#L34-L37

@paulklie

Copy link
Copy Markdown
Collaborator Author

I'm not sure what answers you require from me @paulklie ? It looks like I was the last to reply on the linked issue?

I was mostly asking since you were the one who opened the original issue; this change was requested by you.

What do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feedback required more info is needed, issue will be likely closed if it is not provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants