Open andrewphilipsmith opened 1 year ago
The immediate cause is the arbitrary choice made here https://github.com/a-b-street/abstreet/blob/e018d33b6b7d16006457985a79e4bb3bfdba7d44/map_model/src/map.rs#L1079
The wider problem is that this is likely to be a limitation of the road.turn_restictions structure. This doesn't store information about which intersection the turn relates to. Presumably on the assumption that the intersection is unambiguous - which it is in the large majority of cases. See discussion here https://github.com/a-b-street/abstreet/pull/1091#issuecomment-1701312770
Not tested yet but suspected => importing this scenario from OSM data would result in the same problem. It might be appropriate/helpful to build a test case around this.
(This will be true if https://github.com/a-b-street/abstreet/pull/1091 is merged.)
How to reproduce
Expected results
The icons for the new/edited turn restrictions should show at the end of the road where it was edited.
Actual results
The icons for the new/edited turn restrictions will always show at the same end of the road, irrespective of which end of the road was clicked on during editing.
https://github.com/a-b-street/abstreet/assets/5346065/a5821298-da22-4ff2-92a4-e957589bf196
See video: