{"action":"opened","number":621,"pull_request":{"url":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621","id":54600139,"html_url":"https://github.com/graphhopper/graphhopper/pull/621","diff_url":"https://github.com/graphhopper/graphhopper/pull/621.diff","patch_url":"https://github.com/graphhopper/graphhopper/pull/621.patch","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/621","number":621,"state":"open","locked":false,"title":"Conditional Access Restrictions","user":{"login":"boldtrn","id":1553525,"avatar_url":"https://avatars.githubusercontent.com/u/1553525?v=3","gravatar_id":"","url":"https://api.github.com/users/boldtrn","html_url":"https://github.com/boldtrn","followers_url":"https://api.github.com/users/boldtrn/followers","following_url":"https://api.github.com/users/boldtrn/following{/other_user}","gists_url":"https://api.github.com/users/boldtrn/gists{/gist_id}","starred_url":"https://api.github.com/users/boldtrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boldtrn/subscriptions","organizations_url":"https://api.github.com/users/boldtrn/orgs","repos_url":"https://api.github.com/users/boldtrn/repos","events_url":"https://api.github.com/users/boldtrn/events{/privacy}","received_events_url":"https://api.github.com/users/boldtrn/received_events","type":"User","site_admin":false},"body":"This PR adds the feature of checking conditional Access Restrictions. Currently only restrictions that last longer than one day are supported. The WayAcceptor currently uses the current day as comparison value.\r\n\r\nCurrently the following date formats are supported:\r\n* 2014 Aug 10-2014 Aug 14\r\n* Aug 10-Aug 14\r\n* Jul-Aug\r\n* Aug\r\n* Sa-Su\r\n* Su\r\n* All of the above formats support the ranges in revers, e.g. Nov-Jan (matches Nov, Dec, Jan)\r\n\r\nThings that are not supported yet:\r\n* Multiple conditions like:\r\n * (2014 Aug 10-2014 Aug 14; Sa-Su)\r\n * no @ (2014 Aug 10-2014 Aug 14); no @ (Su)\r\n* Allowance of already restricted ways, like `yes @ (Su)`\r\n* Things like: easter, PH, SH, summer, winter, ...\r\n","created_at":"2015-12-26T10:08:46Z","updated_at":"2015-12-26T10:08:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621/commits","review_comments_url":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621/comments","review_comment_url":"https://api.github.com/repos/graphhopper/graphhopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/621/comments","statuses_url":"https://api.github.com/repos/graphhopper/graphhopper/statuses/c212f1724e9b93b00bfd88a79312fe00644a4939","head":{"label":"boldtrn:feature_access_restriction","ref":"feature_access_restriction","sha":"c212f1724e9b93b00bfd88a79312fe00644a4939","user":{"login":"boldtrn","id":1553525,"avatar_url":"https://avatars.githubusercontent.com/u/1553525?v=3","gravatar_id":"","url":"https://api.github.com/users/boldtrn","html_url":"https://github.com/boldtrn","followers_url":"https://api.github.com/users/boldtrn/followers","following_url":"https://api.github.com/users/boldtrn/following{/other_user}","gists_url":"https://api.github.com/users/boldtrn/gists{/gist_id}","starred_url":"https://api.github.com/users/boldtrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boldtrn/subscriptions","organizations_url":"https://api.github.com/users/boldtrn/orgs","repos_url":"https://api.github.com/users/boldtrn/repos","events_url":"https://api.github.com/users/boldtrn/events{/privacy}","received_events_url":"https://api.github.com/users/boldtrn/received_events","type":"User","site_admin":false},"repo":{"id":46709952,"name":"graphhopper","full_name":"boldtrn/graphhopper","owner":{"login":"boldtrn","id":1553525,"avatar_url":"https://avatars.githubusercontent.com/u/1553525?v=3","gravatar_id":"","url":"https://api.github.com/users/boldtrn","html_url":"https://github.com/boldtrn","followers_url":"https://api.github.com/users/boldtrn/followers","following_url":"https://api.github.com/users/boldtrn/following{/other_user}","gists_url":"https://api.github.com/users/boldtrn/gists{/gist_id}","starred_url":"https://api.github.com/users/boldtrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boldtrn/subscriptions","organizations_url":"https://api.github.com/users/boldtrn/orgs","repos_url":"https://api.github.com/users/boldtrn/repos","events_url":"https://api.github.com/users/boldtrn/events{/privacy}","received_events_url":"https://api.github.com/users/boldtrn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boldtrn/graphhopper","description":"Fast routing library and server using OpenStreetMap. #route #planner","fork":true,"url":"https://api.github.com/repos/boldtrn/graphhopper","forks_url":"https://api.github.com/repos/boldtrn/graphhopper/forks","keys_url":"https://api.github.com/repos/boldtrn/graphhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boldtrn/graphhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boldtrn/graphhopper/teams","hooks_url":"https://api.github.com/repos/boldtrn/graphhopper/hooks","issue_events_url":"https://api.github.com/repos/boldtrn/graphhopper/issues/events{/number}","events_url":"https://api.github.com/repos/boldtrn/graphhopper/events","assignees_url":"https://api.github.com/repos/boldtrn/graphhopper/assignees{/user}","branches_url":"https://api.github.com/repos/boldtrn/graphhopper/branches{/branch}","tags_url":"https://api.github.com/repos/boldtrn/graphhopper/tags","blobs_url":"https://api.github.com/repos/boldtrn/graphhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boldtrn/graphhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boldtrn/graphhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/boldtrn/graphhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boldtrn/graphhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/boldtrn/graphhopper/languages","stargazers_url":"https://api.github.com/repos/boldtrn/graphhopper/stargazers","contributors_url":"https://api.github.com/repos/boldtrn/graphhopper/contributors","subscribers_url":"https://api.github.com/repos/boldtrn/graphhopper/subscribers","subscription_url":"https://api.github.com/repos/boldtrn/graphhopper/subscription","commits_url":"https://api.github.com/repos/boldtrn/graphhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/boldtrn/graphhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/boldtrn/graphhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/boldtrn/graphhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/boldtrn/graphhopper/contents/{+path}","compare_url":"https://api.github.com/repos/boldtrn/graphhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boldtrn/graphhopper/merges","archive_url":"https://api.github.com/repos/boldtrn/graphhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boldtrn/graphhopper/downloads","issues_url":"https://api.github.com/repos/boldtrn/graphhopper/issues{/number}","pulls_url":"https://api.github.com/repos/boldtrn/graphhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/boldtrn/graphhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/boldtrn/graphhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boldtrn/graphhopper/labels{/name}","releases_url":"https://api.github.com/repos/boldtrn/graphhopper/releases{/id}","created_at":"2015-11-23T09:28:28Z","updated_at":"2015-11-23T09:28:32Z","pushed_at":"2015-12-26T09:56:22Z","git_url":"git://github.com/boldtrn/graphhopper.git","ssh_url":"git@github.com:boldtrn/graphhopper.git","clone_url":"https://github.com/boldtrn/graphhopper.git","svn_url":"https://github.com/boldtrn/graphhopper","homepage":"https://graphhopper.com","size":37928,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"graphhopper:master","ref":"master","sha":"4697e23034045d7b7d7975a066d11c058d767a06","user":{"login":"graphhopper","id":2264498,"avatar_url":"https://avatars.githubusercontent.com/u/2264498?v=3","gravatar_id":"","url":"https://api.github.com/users/graphhopper","html_url":"https://github.com/graphhopper","followers_url":"https://api.github.com/users/graphhopper/followers","following_url":"https://api.github.com/users/graphhopper/following{/other_user}","gists_url":"https://api.github.com/users/graphhopper/gists{/gist_id}","starred_url":"https://api.github.com/users/graphhopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphhopper/subscriptions","organizations_url":"https://api.github.com/users/graphhopper/orgs","repos_url":"https://api.github.com/users/graphhopper/repos","events_url":"https://api.github.com/users/graphhopper/events{/privacy}","received_events_url":"https://api.github.com/users/graphhopper/received_events","type":"Organization","site_admin":false},"repo":{"id":3480666,"name":"graphhopper","full_name":"graphhopper/graphhopper","owner":{"login":"graphhopper","id":2264498,"avatar_url":"https://avatars.githubusercontent.com/u/2264498?v=3","gravatar_id":"","url":"https://api.github.com/users/graphhopper","html_url":"https://github.com/graphhopper","followers_url":"https://api.github.com/users/graphhopper/followers","following_url":"https://api.github.com/users/graphhopper/following{/other_user}","gists_url":"https://api.github.com/users/graphhopper/gists{/gist_id}","starred_url":"https://api.github.com/users/graphhopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphhopper/subscriptions","organizations_url":"https://api.github.com/users/graphhopper/orgs","repos_url":"https://api.github.com/users/graphhopper/repos","events_url":"https://api.github.com/users/graphhopper/events{/privacy}","received_events_url":"https://api.github.com/users/graphhopper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphhopper/graphhopper","description":"Fast routing library and server using OpenStreetMap :earth_africa: #route #planner","fork":false,"url":"https://api.github.com/repos/graphhopper/graphhopper","forks_url":"https://api.github.com/repos/graphhopper/graphhopper/forks","keys_url":"https://api.github.com/repos/graphhopper/graphhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphhopper/graphhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphhopper/graphhopper/teams","hooks_url":"https://api.github.com/repos/graphhopper/graphhopper/hooks","issue_events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/events{/number}","events_url":"https://api.github.com/repos/graphhopper/graphhopper/events","assignees_url":"https://api.github.com/repos/graphhopper/graphhopper/assignees{/user}","branches_url":"https://api.github.com/repos/graphhopper/graphhopper/branches{/branch}","tags_url":"https://api.github.com/repos/graphhopper/graphhopper/tags","blobs_url":"https://api.github.com/repos/graphhopper/graphhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphhopper/graphhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphhopper/graphhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphhopper/graphhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphhopper/graphhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/graphhopper/graphhopper/languages","stargazers_url":"https://api.github.com/repos/graphhopper/graphhopper/stargazers","contributors_url":"https://api.github.com/repos/graphhopper/graphhopper/contributors","subscribers_url":"https://api.github.com/repos/graphhopper/graphhopper/subscribers","subscription_url":"https://api.github.com/repos/graphhopper/graphhopper/subscription","commits_url":"https://api.github.com/repos/graphhopper/graphhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphhopper/graphhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphhopper/graphhopper/contents/{+path}","compare_url":"https://api.github.com/repos/graphhopper/graphhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphhopper/graphhopper/merges","archive_url":"https://api.github.com/repos/graphhopper/graphhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphhopper/graphhopper/downloads","issues_url":"https://api.github.com/repos/graphhopper/graphhopper/issues{/number}","pulls_url":"https://api.github.com/repos/graphhopper/graphhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/graphhopper/graphhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/graphhopper/graphhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/labels{/name}","releases_url":"https://api.github.com/repos/graphhopper/graphhopper/releases{/id}","created_at":"2012-02-18T19:57:38Z","updated_at":"2015-12-25T15:49:21Z","pushed_at":"2015-12-25T14:52:56Z","git_url":"git://github.com/graphhopper/graphhopper.git","ssh_url":"git@github.com:graphhopper/graphhopper.git","clone_url":"https://github.com/graphhopper/graphhopper.git","svn_url":"https://github.com/graphhopper/graphhopper","homepage":"https://graphhopper.com","size":93868,"stargazers_count":649,"watchers_count":649,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":296,"mirror_url":null,"open_issues_count":118,"forks":296,"open_issues":118,"watchers":649,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621"},"html":{"href":"https://github.com/graphhopper/graphhopper/pull/621"},"issue":{"href":"https://api.github.com/repos/graphhopper/graphhopper/issues/621"},"comments":{"href":"https://api.github.com/repos/graphhopper/graphhopper/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/graphhopper/graphhopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphhopper/graphhopper/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/graphhopper/graphhopper/statuses/c212f1724e9b93b00bfd88a79312fe00644a4939"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":884,"deletions":20,"changed_files":15}}