{"action":"created","issue":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2096","repository_url":"https://api.github.com/repos/Project-OSRM/osrm-backend","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2096/labels{/name}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2096/comments","events_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2096/events","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/2096","id":141007065,"number":2096,"title":"Length Zero Segments","user":{"login":"MoKob","id":12932279,"avatar_url":"https://avatars.githubusercontent.com/u/12932279?v=3","gravatar_id":"","url":"https://api.github.com/users/MoKob","html_url":"https://github.com/MoKob","followers_url":"https://api.github.com/users/MoKob/followers","following_url":"https://api.github.com/users/MoKob/following{/other_user}","gists_url":"https://api.github.com/users/MoKob/gists{/gist_id}","starred_url":"https://api.github.com/users/MoKob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoKob/subscriptions","organizations_url":"https://api.github.com/users/MoKob/orgs","repos_url":"https://api.github.com/users/MoKob/repos","events_url":"https://api.github.com/users/MoKob/events{/privacy}","received_events_url":"https://api.github.com/users/MoKob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/labels/Bug%20Report","name":"Bug Report","color":"e10c02"},{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/labels/Discussion","name":"Discussion","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/milestones/2","html_url":"https://github.com/Project-OSRM/osrm-backend/milestones/OSRM%205.0","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/milestones/2/labels","id":41286,"number":2,"title":"OSRM 5.0","description":"","creator":{"login":"DennisOSRM","id":1067895,"avatar_url":"https://avatars.githubusercontent.com/u/1067895?v=3","gravatar_id":"","url":"https://api.github.com/users/DennisOSRM","html_url":"https://github.com/DennisOSRM","followers_url":"https://api.github.com/users/DennisOSRM/followers","following_url":"https://api.github.com/users/DennisOSRM/following{/other_user}","gists_url":"https://api.github.com/users/DennisOSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/DennisOSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DennisOSRM/subscriptions","organizations_url":"https://api.github.com/users/DennisOSRM/orgs","repos_url":"https://api.github.com/users/DennisOSRM/repos","events_url":"https://api.github.com/users/DennisOSRM/events{/privacy}","received_events_url":"https://api.github.com/users/DennisOSRM/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":73,"state":"open","created_at":"2011-09-27T07:10:24Z","updated_at":"2016-03-16T19:51:34Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-15T15:26:00Z","updated_at":"2016-03-17T09:29:30Z","closed_at":null,"body":"https://github.com/Project-OSRM/osrm-backend/blob/rewrite/new-api/include/engine/guidance/assemble_steps.hpp#L62-L143 does a step-back from OSRM-4.9.\r\n\r\nGiven a coordinate that snaps to an intersection of two roads, we have to select a phantom node pre-route. This can result in an additional turn-instruction both at the front and at the end of the route.\r\n\r\nE.g\r\n(1)\r\na ----- b\r\n |\r\n | \r\n c\r\n(2)\r\n\r\nThis could result in `Head West on (ab) for 0 m`, `Turn Left onto (ac)`, `Arrive at (2)`, when routing from `(1)` to `(2)`.\r\n\r\nIn my view, the removal of this additional segment in the front/back is something that we should keep.\r\nThe Route (1)-(2) should result in `Head South on (ac)`, `Arrive at (2)`.\r\n\r\n/cc @TheMarex"},"comment":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/comments/197787281","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/2096#issuecomment-197787281","issue_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2096","id":197787281,"user":{"login":"MoKob","id":12932279,"avatar_url":"https://avatars.githubusercontent.com/u/12932279?v=3","gravatar_id":"","url":"https://api.github.com/users/MoKob","html_url":"https://github.com/MoKob","followers_url":"https://api.github.com/users/MoKob/followers","following_url":"https://api.github.com/users/MoKob/following{/other_user}","gists_url":"https://api.github.com/users/MoKob/gists{/gist_id}","starred_url":"https://api.github.com/users/MoKob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoKob/subscriptions","organizations_url":"https://api.github.com/users/MoKob/orgs","repos_url":"https://api.github.com/users/MoKob/repos","events_url":"https://api.github.com/users/MoKob/events{/privacy}","received_events_url":"https://api.github.com/users/MoKob/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T09:29:30Z","updated_at":"2016-03-17T09:29:30Z","body":"Wherever you solve it, it requires to adjust stuff thats stored in the phantom node in ways that are hard to do, when you use preprocessed data in that phantom-node."}}