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

Handle modal filters #253

Open dabreegster opened 7 months ago

dabreegster commented 7 months ago

Particularly barrier nodes along a way. The clean approach might be to make these degenerate Intersections of a special new type.

Related to https://github.com/dabreegster/ltn/issues/6

tordans commented 7 months ago

Quite a few of those in Berlin are more like a special road type from an osm2streets point of view, IMO. We are still debating how to best represent them in OSM in our OSM Verkehrswende Meetup.

Two examples of modal filters on a straight road segment

dabreegster commented 7 months ago

I've seen both styles in the UK. https://github.com/a-b-street/abstreet/blob/7c22acb4d811536b877d96c705a52688ba7dc7af/apps/ltn/src/logic/existing.rs#L59 detects short cycleable-but-not-driveable segments that're connected to driveable segments on both sides, and that's worked pretty well so far.

If the filter is more than just a small point along the road, splitting the road is a more detailed way to indicate how much length it takes