{"action":"created","issue":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2285","repository_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner","labels_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2285/labels{/name}","comments_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2285/comments","events_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2285/events","html_url":"https://github.com/opentripplanner/OpenTripPlanner/pull/2285","id":160465497,"number":2285,"title":"Throws trivialPath exception if start/end point is at the same edge","user":{"login":"buma","id":1055967,"avatar_url":"https://avatars.githubusercontent.com/u/1055967?v=3","gravatar_id":"","url":"https://api.github.com/users/buma","html_url":"https://github.com/buma","followers_url":"https://api.github.com/users/buma/followers","following_url":"https://api.github.com/users/buma/following{/other_user}","gists_url":"https://api.github.com/users/buma/gists{/gist_id}","starred_url":"https://api.github.com/users/buma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buma/subscriptions","organizations_url":"https://api.github.com/users/buma/orgs","repos_url":"https://api.github.com/users/buma/repos","events_url":"https://api.github.com/users/buma/events{/privacy}","received_events_url":"https://api.github.com/users/buma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-15T16:25:29Z","updated_at":"2016-07-13T16:22:17Z","closed_at":"2016-06-16T15:39:13Z","pull_request":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/pulls/2285","html_url":"https://github.com/opentripplanner/OpenTripPlanner/pull/2285","diff_url":"https://github.com/opentripplanner/OpenTripPlanner/pull/2285.diff","patch_url":"https://github.com/opentripplanner/OpenTripPlanner/pull/2285.patch"},"body":"When edges are split in origin/destination point request this is saved in RoutingRequest and if both requests would split same edge TrivialPathException is thrown."},"comment":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/comments/232408422","html_url":"https://github.com/opentripplanner/OpenTripPlanner/pull/2285#issuecomment-232408422","issue_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2285","id":232408422,"user":{"login":"hannesj","id":698100,"avatar_url":"https://avatars.githubusercontent.com/u/698100?v=3","gravatar_id":"","url":"https://api.github.com/users/hannesj","html_url":"https://github.com/hannesj","followers_url":"https://api.github.com/users/hannesj/followers","following_url":"https://api.github.com/users/hannesj/following{/other_user}","gists_url":"https://api.github.com/users/hannesj/gists{/gist_id}","starred_url":"https://api.github.com/users/hannesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannesj/subscriptions","organizations_url":"https://api.github.com/users/hannesj/orgs","repos_url":"https://api.github.com/users/hannesj/repos","events_url":"https://api.github.com/users/hannesj/events{/privacy}","received_events_url":"https://api.github.com/users/hannesj/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T16:22:17Z","updated_at":"2016-07-13T16:22:17Z","body":"This seems to break GraphIndex#findClosestStopsByWalking, as it sets both to and from to the same, and initializes the routing context before batch is set to true in the RoutingRequest. A simple fix seems to be swap [these lines](https://github.com/opentripplanner/OpenTripPlanner/blob/058266d5b4f6ad8fb3815a42d9ae939a22efc8aa/src/main/java/org/opentripplanner/routing/graph/GraphIndex.java#L312-L313)"}}
{"actor":{"display_login":"hannesj"}}