{"action":"created","issue":{"url":"https://api.github.com/repos/openstreetmap/iD/issues/5000","repository_url":"https://api.github.com/repos/openstreetmap/iD","labels_url":"https://api.github.com/repos/openstreetmap/iD/issues/5000/labels{/name}","comments_url":"https://api.github.com/repos/openstreetmap/iD/issues/5000/comments","events_url":"https://api.github.com/repos/openstreetmap/iD/issues/5000/events","html_url":"https://github.com/openstreetmap/iD/issues/5000","id":315891705,"number":5000,"title":"When adding Turn Restrictions, split the from and to ways near the intersection","user":{"login":"bhousel","id":38784,"avatar_url":"https://avatars1.githubusercontent.com/u/38784?v=4","gravatar_id":"","url":"https://api.github.com/users/bhousel","html_url":"https://github.com/bhousel","followers_url":"https://api.github.com/users/bhousel/followers","following_url":"https://api.github.com/users/bhousel/following{/other_user}","gists_url":"https://api.github.com/users/bhousel/gists{/gist_id}","starred_url":"https://api.github.com/users/bhousel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhousel/subscriptions","organizations_url":"https://api.github.com/users/bhousel/orgs","repos_url":"https://api.github.com/users/bhousel/repos","events_url":"https://api.github.com/users/bhousel/events{/privacy}","received_events_url":"https://api.github.com/users/bhousel/received_events","type":"User","site_admin":false},"labels":[{"id":110732347,"url":"https://api.github.com/repos/openstreetmap/iD/labels/field","name":"field","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-19T14:02:10Z","updated_at":"2018-04-19T14:32:45Z","closed_at":null,"author_association":"MEMBER","body":"This is a request from several teams working with turn restrictions (including Mapbox and others).  It would be useful to split turn restriction from/to ways near the turn restriction intersection.  \r\n\r\n![split_at_junctions](https://user-images.githubusercontent.com/38784/38995116-31e3ae80-43b6-11e8-928f-53b9156964a7.png)\r\n\r\nThe benefits here include:\r\n* limit the extent of the effects of the turn restriction\r\n* better review of turn restrictions in tools like on OSM or OSMCha or JOSM\r\n* avoid unnecessary modification of the turn restriction (e.g. a \"new\" TR may end up with version 2 just because a split happened far away after it was added).\r\n\r\nFor example:\r\n\r\nIt's pretty easy to tell what was changed here because the turn restriction is scoped tightly to the intersection:\r\n<img width=\"500\" alt=\"screenshot 2018-04-19 09 57 39\" src=\"https://user-images.githubusercontent.com/38784/38996035-47b5d51a-43b8-11e8-9e01-cfc77be15c67.png\">\r\n\r\nNot so much for this one, which covers a large portion of Detroit:\r\n<img width=\"500\" alt=\"screenshot 2018-04-19 09 58 20\" src=\"https://user-images.githubusercontent.com/38784/38996080-645b1392-43b8-11e8-922a-7bb8e598f7c0.png\">\r\n\r\n(Both changes were made with iD - the first example just happened to involve ways that were already split around there).\r\n\r\ncc @maning @planemad "},"comment":{"url":"https://api.github.com/repos/openstreetmap/iD/issues/comments/382759262","html_url":"https://github.com/openstreetmap/iD/issues/5000#issuecomment-382759262","issue_url":"https://api.github.com/repos/openstreetmap/iD/issues/5000","id":382759262,"user":{"login":"bhousel","id":38784,"avatar_url":"https://avatars1.githubusercontent.com/u/38784?v=4","gravatar_id":"","url":"https://api.github.com/users/bhousel","html_url":"https://github.com/bhousel","followers_url":"https://api.github.com/users/bhousel/followers","following_url":"https://api.github.com/users/bhousel/following{/other_user}","gists_url":"https://api.github.com/users/bhousel/gists{/gist_id}","starred_url":"https://api.github.com/users/bhousel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhousel/subscriptions","organizations_url":"https://api.github.com/users/bhousel/orgs","repos_url":"https://api.github.com/users/bhousel/repos","events_url":"https://api.github.com/users/bhousel/events{/privacy}","received_events_url":"https://api.github.com/users/bhousel/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T14:32:45Z","updated_at":"2018-04-19T14:32:45Z","author_association":"MEMBER","body":"> If iD splits the way to limit the scope of the turn restriction, won't that changeset's bounding box will still be big (because the split way will force the changeset bbox to include the original way)? Future changesets that modify the turn restriction will be smaller, of course.\r\n\r\nYes, the bounds of the **changeset** will still be just as big - the extent of the change to the ways will be large - but the bounds around the **restriction** will be small.  \r\n\r\nMostly the thing we are trying to avoid is the Detroit screenshot above.  It was from OSMCha, but you would see the same thing in JOSM or on `openstreetmap.org/relation/` when looking at a turn restriction relation:\r\n\r\n<img width=\"500\" alt=\"screenshot 2018-04-19 10 29 11\" src=\"https://user-images.githubusercontent.com/38784/38997935-8e1c6538-43bc-11e8-9705-6fce06373ad2.png\">\r\n\r\nhttps://www.openstreetmap.org/relation/8223161#map=13/42.3946/-82.9343\r\n"}}
{"actor":{"display_login":"bhousel"}}