a-b-street / osm2streets

Convert OSM to street networks with detailed geometry
https://a-b-street.github.io/osm2streets
Apache License 2.0
101 stars 9 forks source link

Add kerbs #242

Closed ginnyTheCat closed 8 months ago

ginnyTheCat commented 8 months ago

Adds kerb positions generated by muv-osm to osm2streets as discussed in #232 and tracked by #240. This provides a higher level of detail as it allows one to easily distinguish cycleway=lane from cycleway=track on the map.

A cycleway moving from the roadway to the sidewalk

It behaved quite unexpected for me for highway=cycleway + sidewalk=* but this is what the wiki suggests. In case this is unwanted we can skip the kerb in this case in every country but the Netherlands.

dabreegster commented 8 months ago

Thank you! I'll pick this up tomorrow. The rendering of the curb is a bit buggy; RenderLanePolygons.svelte probably needs a new case.

Relatedly, BufferType here can probably have an overhaul. I think https://wiki.openstreetmap.org/wiki/Proposal:Separation has caught on. I might have a go at some simple rendering for all of these cases. Downstream use cases might look at the quality of the separation of a cycleway from traffic.