a-b-street / abstreet

Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
https://a-b-street.github.io/docs/
Apache License 2.0
7.7k stars 342 forks source link

Turn restriction display/editing fails when two roads meet at both ends #1108

Open andrewphilipsmith opened 1 year ago

andrewphilipsmith commented 1 year ago

(This will be true if https://github.com/a-b-street/abstreet/pull/1091 is merged.)

How to reproduce

  1. Locate a small crescent road which meets the same main road at each end, and there are no other intermediate intersections.
  2. Open this location in the LTN tool
  3. Attempt to add/edit turn restrictions at both ends of the road.

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:

andrewphilipsmith commented 1 year ago

Notes: