Start a new transformation that merges a class of parallel cycleways to #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the main road, preserving lanes. #59
Disabled by default.
I have been puzzling through how to simplify cases like this for a long time, but the last progress was almost two years ago: a-b-street/abstreet#348. I took a fresh approach by
The result is delightful. Along Roosevelt in Seattle, before:
![Screenshot from 2022-08-11 11-23-11](https://user-images.githubusercontent.com/1664407/184113715-75354e39-62dc-499b-b17f-7713852c83f7.png)
![Screenshot from 2022-08-11 11-23-24](https://user-images.githubusercontent.com/1664407/184113749-ae7606ef-6265-4ddf-994c-89e2fd0d7f37.png)
and after:
The red lane is the buffer lane inserted. With additional tagging in OSM, we can know if these are flex posts, concrete bollards, a Jersey barrier, striping, etc.
And much more extravagantly, St George's just past the Elephant & Castle roundabout. Before:
![Screenshot from 2022-08-11 11-25-42](https://user-images.githubusercontent.com/1664407/184114125-b044a38b-e71d-4fb2-a61a-ac36081eabe4.png)
![Screenshot from 2022-08-11 11-26-30](https://user-images.githubusercontent.com/1664407/184114207-b6fdea8c-c3d9-4d8a-88ee-9e8ecb9b74f8.png)
After:
As you can see to the right, the algorithm is far from finished. It gets confused by the "triangular" shape of the cycleway graph there and just leaves it alone. I'm leaving this transformation disabled until more dramatic problems are fixed, like in Taipei... before:
![Screenshot from 2022-08-11 11-28-40](https://user-images.githubusercontent.com/1664407/184114530-21881b58-cff2-4470-8831-b9de499cfdd9.png)
![Screenshot from 2022-08-11 11-29-20](https://user-images.githubusercontent.com/1664407/184114637-ee7059a4-1056-4f95-b92b-71693f015631.png)
Note this paradise of parallel cycletrack is actually mostly-pedestrian space in reality, but that's another issue. After:
Clearly something went very wrong. I'll improve the incremental interactive debugging and figure out what. Right now the debugging is shown for all cycleway segments at the same time; we can split this into smaller steps.
![Screenshot from 2022-08-11 11-30-47](https://user-images.githubusercontent.com/1664407/184114917-fdca5c99-6a96-4d21-a331-81ae19194889.png)