{"action":"created","comment":{"url":"https://api.github.com/repos/valhalla/baldr/pulls/comments/80103367","id":80103367,"diff_hunk":"@@ -196,14 +196,18 @@ class GraphTile {\n    * @param   dow               Day of week (see graphconstants.h)\n    * @param   date_before_tile  Is the date that was inputed before\n    *                            the tile creation date?\n+   * @param   wheelchair        Only find departures with wheelchair access if true\n+   * @param   bicyle            Only find departures with bicycle access if true\n    * @return  Returns a pointer to the transit departure information.\n    *          Returns nullptr if no departures are found.\n    */\n   const TransitDeparture* GetNextDeparture(const uint32_t lineid,\n                                            const uint32_t current_time,\n                                            const uint32_t day,\n                                            const uint32_t dow,\n-                                           bool  date_before_tile) const;\n+                                           bool  date_before_tile,\n+                                           bool wheelchair = false,","path":"valhalla/baldr/graphtile.h","position":15,"original_position":15,"commit_id":"b30f23fb2fef3ce60893d43249310e83d6d176e0","original_commit_id":"b30f23fb2fef3ce60893d43249310e83d6d176e0","user":{"login":"gknisely","id":2676277,"avatar_url":"https://avatars.githubusercontent.com/u/2676277?v=3","gravatar_id":"","url":"https://api.github.com/users/gknisely","html_url":"https://github.com/gknisely","followers_url":"https://api.github.com/users/gknisely/followers","following_url":"https://api.github.com/users/gknisely/following{/other_user}","gists_url":"https://api.github.com/users/gknisely/gists{/gist_id}","starred_url":"https://api.github.com/users/gknisely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gknisely/subscriptions","organizations_url":"https://api.github.com/users/gknisely/orgs","repos_url":"https://api.github.com/users/gknisely/repos","events_url":"https://api.github.com/users/gknisely/events{/privacy}","received_events_url":"https://api.github.com/users/gknisely/received_events","type":"User","site_admin":false},"body":"no defaults needed.  ","created_at":"2016-09-22T18:16:56Z","updated_at":"2016-09-22T18:16:56Z","html_url":"https://github.com/valhalla/baldr/pull/291#discussion_r80103367","pull_request_url":"https://api.github.com/repos/valhalla/baldr/pulls/291","_links":{"self":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/comments/80103367"},"html":{"href":"https://github.com/valhalla/baldr/pull/291#discussion_r80103367"},"pull_request":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/valhalla/baldr/pulls/291","id":86387430,"html_url":"https://github.com/valhalla/baldr/pull/291","diff_url":"https://github.com/valhalla/baldr/pull/291.diff","patch_url":"https://github.com/valhalla/baldr/pull/291.patch","issue_url":"https://api.github.com/repos/valhalla/baldr/issues/291","number":291,"state":"open","locked":false,"title":"make binary search faster, add wheelchair and bike to departure lookup","user":{"login":"kevinkreiser","id":697548,"avatar_url":"https://avatars.githubusercontent.com/u/697548?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinkreiser","html_url":"https://github.com/kevinkreiser","followers_url":"https://api.github.com/users/kevinkreiser/followers","following_url":"https://api.github.com/users/kevinkreiser/following{/other_user}","gists_url":"https://api.github.com/users/kevinkreiser/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinkreiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinkreiser/subscriptions","organizations_url":"https://api.github.com/users/kevinkreiser/orgs","repos_url":"https://api.github.com/users/kevinkreiser/repos","events_url":"https://api.github.com/users/kevinkreiser/events{/privacy}","received_events_url":"https://api.github.com/users/kevinkreiser/received_events","type":"User","site_admin":false},"body":"instead of spooling back to the beginning to get the first matching record ive slightly modified the 4 binary searches to find the first matching record. ive also simplified the logic after each one for the various other criteria.\r\n\r\nin addition to that when asking for the next departure you can also specify that you need one that supports bike and/or wheelchair","created_at":"2016-09-22T18:14:08Z","updated_at":"2016-09-22T18:16:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05c6f1492571a3461a7ae308797a3f98d07c9aa1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/valhalla/baldr/pulls/291/commits","review_comments_url":"https://api.github.com/repos/valhalla/baldr/pulls/291/comments","review_comment_url":"https://api.github.com/repos/valhalla/baldr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valhalla/baldr/issues/291/comments","statuses_url":"https://api.github.com/repos/valhalla/baldr/statuses/b30f23fb2fef3ce60893d43249310e83d6d176e0","head":{"label":"valhalla:kk_binsearch","ref":"kk_binsearch","sha":"b30f23fb2fef3ce60893d43249310e83d6d176e0","user":{"login":"valhalla","id":10232331,"avatar_url":"https://avatars.githubusercontent.com/u/10232331?v=3","gravatar_id":"","url":"https://api.github.com/users/valhalla","html_url":"https://github.com/valhalla","followers_url":"https://api.github.com/users/valhalla/followers","following_url":"https://api.github.com/users/valhalla/following{/other_user}","gists_url":"https://api.github.com/users/valhalla/gists{/gist_id}","starred_url":"https://api.github.com/users/valhalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhalla/subscriptions","organizations_url":"https://api.github.com/users/valhalla/orgs","repos_url":"https://api.github.com/users/valhalla/repos","events_url":"https://api.github.com/users/valhalla/events{/privacy}","received_events_url":"https://api.github.com/users/valhalla/received_events","type":"Organization","site_admin":false},"repo":{"id":28186324,"name":"baldr","full_name":"valhalla/baldr","owner":{"login":"valhalla","id":10232331,"avatar_url":"https://avatars.githubusercontent.com/u/10232331?v=3","gravatar_id":"","url":"https://api.github.com/users/valhalla","html_url":"https://github.com/valhalla","followers_url":"https://api.github.com/users/valhalla/followers","following_url":"https://api.github.com/users/valhalla/following{/other_user}","gists_url":"https://api.github.com/users/valhalla/gists{/gist_id}","starred_url":"https://api.github.com/users/valhalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhalla/subscriptions","organizations_url":"https://api.github.com/users/valhalla/orgs","repos_url":"https://api.github.com/users/valhalla/repos","events_url":"https://api.github.com/users/valhalla/events{/privacy}","received_events_url":"https://api.github.com/users/valhalla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/valhalla/baldr","description":"Routing-specific data structures distilled into a library for use within other parts of the system","fork":false,"url":"https://api.github.com/repos/valhalla/baldr","forks_url":"https://api.github.com/repos/valhalla/baldr/forks","keys_url":"https://api.github.com/repos/valhalla/baldr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valhalla/baldr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valhalla/baldr/teams","hooks_url":"https://api.github.com/repos/valhalla/baldr/hooks","issue_events_url":"https://api.github.com/repos/valhalla/baldr/issues/events{/number}","events_url":"https://api.github.com/repos/valhalla/baldr/events","assignees_url":"https://api.github.com/repos/valhalla/baldr/assignees{/user}","branches_url":"https://api.github.com/repos/valhalla/baldr/branches{/branch}","tags_url":"https://api.github.com/repos/valhalla/baldr/tags","blobs_url":"https://api.github.com/repos/valhalla/baldr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valhalla/baldr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valhalla/baldr/git/refs{/sha}","trees_url":"https://api.github.com/repos/valhalla/baldr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valhalla/baldr/statuses/{sha}","languages_url":"https://api.github.com/repos/valhalla/baldr/languages","stargazers_url":"https://api.github.com/repos/valhalla/baldr/stargazers","contributors_url":"https://api.github.com/repos/valhalla/baldr/contributors","subscribers_url":"https://api.github.com/repos/valhalla/baldr/subscribers","subscription_url":"https://api.github.com/repos/valhalla/baldr/subscription","commits_url":"https://api.github.com/repos/valhalla/baldr/commits{/sha}","git_commits_url":"https://api.github.com/repos/valhalla/baldr/git/commits{/sha}","comments_url":"https://api.github.com/repos/valhalla/baldr/comments{/number}","issue_comment_url":"https://api.github.com/repos/valhalla/baldr/issues/comments{/number}","contents_url":"https://api.github.com/repos/valhalla/baldr/contents/{+path}","compare_url":"https://api.github.com/repos/valhalla/baldr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valhalla/baldr/merges","archive_url":"https://api.github.com/repos/valhalla/baldr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valhalla/baldr/downloads","issues_url":"https://api.github.com/repos/valhalla/baldr/issues{/number}","pulls_url":"https://api.github.com/repos/valhalla/baldr/pulls{/number}","milestones_url":"https://api.github.com/repos/valhalla/baldr/milestones{/number}","notifications_url":"https://api.github.com/repos/valhalla/baldr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valhalla/baldr/labels{/name}","releases_url":"https://api.github.com/repos/valhalla/baldr/releases{/id}","deployments_url":"https://api.github.com/repos/valhalla/baldr/deployments","created_at":"2014-12-18T14:18:18Z","updated_at":"2016-09-22T17:36:22Z","pushed_at":"2016-09-22T18:15:26Z","git_url":"git://github.com/valhalla/baldr.git","ssh_url":"git@github.com:valhalla/baldr.git","clone_url":"https://github.com/valhalla/baldr.git","svn_url":"https://github.com/valhalla/baldr","homepage":null,"size":2435,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":6,"default_branch":"master"}},"base":{"label":"valhalla:master","ref":"master","sha":"f9f6f0014f2148e4570a7dd3eeefb9f3430ce407","user":{"login":"valhalla","id":10232331,"avatar_url":"https://avatars.githubusercontent.com/u/10232331?v=3","gravatar_id":"","url":"https://api.github.com/users/valhalla","html_url":"https://github.com/valhalla","followers_url":"https://api.github.com/users/valhalla/followers","following_url":"https://api.github.com/users/valhalla/following{/other_user}","gists_url":"https://api.github.com/users/valhalla/gists{/gist_id}","starred_url":"https://api.github.com/users/valhalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhalla/subscriptions","organizations_url":"https://api.github.com/users/valhalla/orgs","repos_url":"https://api.github.com/users/valhalla/repos","events_url":"https://api.github.com/users/valhalla/events{/privacy}","received_events_url":"https://api.github.com/users/valhalla/received_events","type":"Organization","site_admin":false},"repo":{"id":28186324,"name":"baldr","full_name":"valhalla/baldr","owner":{"login":"valhalla","id":10232331,"avatar_url":"https://avatars.githubusercontent.com/u/10232331?v=3","gravatar_id":"","url":"https://api.github.com/users/valhalla","html_url":"https://github.com/valhalla","followers_url":"https://api.github.com/users/valhalla/followers","following_url":"https://api.github.com/users/valhalla/following{/other_user}","gists_url":"https://api.github.com/users/valhalla/gists{/gist_id}","starred_url":"https://api.github.com/users/valhalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhalla/subscriptions","organizations_url":"https://api.github.com/users/valhalla/orgs","repos_url":"https://api.github.com/users/valhalla/repos","events_url":"https://api.github.com/users/valhalla/events{/privacy}","received_events_url":"https://api.github.com/users/valhalla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/valhalla/baldr","description":"Routing-specific data structures distilled into a library for use within other parts of the system","fork":false,"url":"https://api.github.com/repos/valhalla/baldr","forks_url":"https://api.github.com/repos/valhalla/baldr/forks","keys_url":"https://api.github.com/repos/valhalla/baldr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valhalla/baldr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valhalla/baldr/teams","hooks_url":"https://api.github.com/repos/valhalla/baldr/hooks","issue_events_url":"https://api.github.com/repos/valhalla/baldr/issues/events{/number}","events_url":"https://api.github.com/repos/valhalla/baldr/events","assignees_url":"https://api.github.com/repos/valhalla/baldr/assignees{/user}","branches_url":"https://api.github.com/repos/valhalla/baldr/branches{/branch}","tags_url":"https://api.github.com/repos/valhalla/baldr/tags","blobs_url":"https://api.github.com/repos/valhalla/baldr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valhalla/baldr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valhalla/baldr/git/refs{/sha}","trees_url":"https://api.github.com/repos/valhalla/baldr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valhalla/baldr/statuses/{sha}","languages_url":"https://api.github.com/repos/valhalla/baldr/languages","stargazers_url":"https://api.github.com/repos/valhalla/baldr/stargazers","contributors_url":"https://api.github.com/repos/valhalla/baldr/contributors","subscribers_url":"https://api.github.com/repos/valhalla/baldr/subscribers","subscription_url":"https://api.github.com/repos/valhalla/baldr/subscription","commits_url":"https://api.github.com/repos/valhalla/baldr/commits{/sha}","git_commits_url":"https://api.github.com/repos/valhalla/baldr/git/commits{/sha}","comments_url":"https://api.github.com/repos/valhalla/baldr/comments{/number}","issue_comment_url":"https://api.github.com/repos/valhalla/baldr/issues/comments{/number}","contents_url":"https://api.github.com/repos/valhalla/baldr/contents/{+path}","compare_url":"https://api.github.com/repos/valhalla/baldr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valhalla/baldr/merges","archive_url":"https://api.github.com/repos/valhalla/baldr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valhalla/baldr/downloads","issues_url":"https://api.github.com/repos/valhalla/baldr/issues{/number}","pulls_url":"https://api.github.com/repos/valhalla/baldr/pulls{/number}","milestones_url":"https://api.github.com/repos/valhalla/baldr/milestones{/number}","notifications_url":"https://api.github.com/repos/valhalla/baldr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valhalla/baldr/labels{/name}","releases_url":"https://api.github.com/repos/valhalla/baldr/releases{/id}","deployments_url":"https://api.github.com/repos/valhalla/baldr/deployments","created_at":"2014-12-18T14:18:18Z","updated_at":"2016-09-22T17:36:22Z","pushed_at":"2016-09-22T18:15:26Z","git_url":"git://github.com/valhalla/baldr.git","ssh_url":"git@github.com:valhalla/baldr.git","clone_url":"https://github.com/valhalla/baldr.git","svn_url":"https://github.com/valhalla/baldr","homepage":null,"size":2435,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/291"},"html":{"href":"https://github.com/valhalla/baldr/pull/291"},"issue":{"href":"https://api.github.com/repos/valhalla/baldr/issues/291"},"comments":{"href":"https://api.github.com/repos/valhalla/baldr/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valhalla/baldr/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/valhalla/baldr/statuses/b30f23fb2fef3ce60893d43249310e83d6d176e0"}}}}
{"actor":{"display_login":"gknisely"}}