osm2streets icon indicating copy to clipboard operation
osm2streets copied to clipboard

Support restriction relations with >1 via ways

Open dabreegster opened this issue 4 years ago • 4 comments

https://www.openstreetmap.org/relation/8099562

dabreegster avatar Aug 04 '20 17:08 dabreegster

Is it the same with >1 from ways? This relation is ignored by a/b streets.

Discostu36 avatar Oct 08 '22 21:10 Discostu36

I've never seen a relation with multiple from ways before. Correct, that's also not supported. I assume it's equivalent to 3 separate relations with each of the 3 from ways? If so, this case would be easy to add around https://github.com/a-b-street/osm2streets/blob/dfe25286cc9255329447867786a724891ef8c370/streets_reader/src/extract.rs#L158 by gathering a Vec<WayID> and then interpreting multiple from_way_id appropriately

dabreegster avatar Oct 09 '22 04:10 dabreegster

(And to note, there's no handling of except = bicycle yet.)

Also moving this to osm2streets, where this code now lives. This is related to https://github.com/a-b-street/osm2streets/issues/67 there

dabreegster avatar Oct 09 '22 04:10 dabreegster

I assume it's equivalent to 3 separate relations with each of the 3 from ways?

That is correct.

Discostu36 avatar Oct 09 '22 06:10 Discostu36