{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42","id":29481042,"html_url":"https://github.com/Project-OSRM/osrm-frontend-v2/pull/42","diff_url":"https://github.com/Project-OSRM/osrm-frontend-v2/pull/42.diff","patch_url":"https://github.com/Project-OSRM/osrm-frontend-v2/pull/42.patch","issue_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/42","number":42,"state":"open","locked":false,"title":"Track selected route via LRM events.","user":{"login":"perliedman","id":1246614,"avatar_url":"https://avatars.githubusercontent.com/u/1246614?v=3","gravatar_id":"","url":"https://api.github.com/users/perliedman","html_url":"https://github.com/perliedman","followers_url":"https://api.github.com/users/perliedman/followers","following_url":"https://api.github.com/users/perliedman/following{/other_user}","gists_url":"https://api.github.com/users/perliedman/gists{/gist_id}","starred_url":"https://api.github.com/users/perliedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perliedman/subscriptions","organizations_url":"https://api.github.com/users/perliedman/orgs","repos_url":"https://api.github.com/users/perliedman/repos","events_url":"https://api.github.com/users/perliedman/events{/privacy}","received_events_url":"https://api.github.com/users/perliedman/received_events","type":"User","site_admin":false},"body":"Noticed `tools.js` uses a non-standard method `getSelectedAlternative` from LRM. Replaced it by tracking the `routeselected` event.\r\n\r\nThe same pattern should be applicable to fix #26.","created_at":"2015-02-17T21:51:35Z","updated_at":"2015-02-17T21:51:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42/commits","review_comments_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42/comments","review_comment_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/42/comments","statuses_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/statuses/96c9a5251dd4e7f5089f1805037759b3bb3fcc39","head":{"label":"perliedman:track-selected-route","ref":"track-selected-route","sha":"96c9a5251dd4e7f5089f1805037759b3bb3fcc39","user":{"login":"perliedman","id":1246614,"avatar_url":"https://avatars.githubusercontent.com/u/1246614?v=3","gravatar_id":"","url":"https://api.github.com/users/perliedman","html_url":"https://github.com/perliedman","followers_url":"https://api.github.com/users/perliedman/followers","following_url":"https://api.github.com/users/perliedman/following{/other_user}","gists_url":"https://api.github.com/users/perliedman/gists{/gist_id}","starred_url":"https://api.github.com/users/perliedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perliedman/subscriptions","organizations_url":"https://api.github.com/users/perliedman/orgs","repos_url":"https://api.github.com/users/perliedman/repos","events_url":"https://api.github.com/users/perliedman/events{/privacy}","received_events_url":"https://api.github.com/users/perliedman/received_events","type":"User","site_admin":false},"repo":{"id":30938234,"name":"osrm-frontend-v2","full_name":"perliedman/osrm-frontend-v2","owner":{"login":"perliedman","id":1246614,"avatar_url":"https://avatars.githubusercontent.com/u/1246614?v=3","gravatar_id":"","url":"https://api.github.com/users/perliedman","html_url":"https://github.com/perliedman","followers_url":"https://api.github.com/users/perliedman/followers","following_url":"https://api.github.com/users/perliedman/following{/other_user}","gists_url":"https://api.github.com/users/perliedman/gists{/gist_id}","starred_url":"https://api.github.com/users/perliedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perliedman/subscriptions","organizations_url":"https://api.github.com/users/perliedman/orgs","repos_url":"https://api.github.com/users/perliedman/repos","events_url":"https://api.github.com/users/perliedman/events{/privacy}","received_events_url":"https://api.github.com/users/perliedman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/perliedman/osrm-frontend-v2","description":"Modular rewrite of the OSRM frontend using LRM","fork":true,"url":"https://api.github.com/repos/perliedman/osrm-frontend-v2","forks_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/forks","keys_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/teams","hooks_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/hooks","issue_events_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/issues/events{/number}","events_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/events","assignees_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/assignees{/user}","branches_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/branches{/branch}","tags_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/tags","blobs_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/languages","stargazers_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/stargazers","contributors_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/contributors","subscribers_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/subscribers","subscription_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/subscription","commits_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/issues/comments/{number}","contents_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/contents/{+path}","compare_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/merges","archive_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/downloads","issues_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/issues{/number}","pulls_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/labels{/name}","releases_url":"https://api.github.com/repos/perliedman/osrm-frontend-v2/releases{/id}","created_at":"2015-02-17T21:17:55Z","updated_at":"2015-02-17T21:17:55Z","pushed_at":"2015-02-17T21:49:12Z","git_url":"git://github.com/perliedman/osrm-frontend-v2.git","ssh_url":"git@github.com:perliedman/osrm-frontend-v2.git","clone_url":"https://github.com/perliedman/osrm-frontend-v2.git","svn_url":"https://github.com/perliedman/osrm-frontend-v2","homepage":"","size":903,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Project-OSRM:master","ref":"master","sha":"9fa6e793974282a7cf2bd0fb8ec05a73788f0563","user":{"login":"Project-OSRM","id":8207060,"avatar_url":"https://avatars.githubusercontent.com/u/8207060?v=3","gravatar_id":"","url":"https://api.github.com/users/Project-OSRM","html_url":"https://github.com/Project-OSRM","followers_url":"https://api.github.com/users/Project-OSRM/followers","following_url":"https://api.github.com/users/Project-OSRM/following{/other_user}","gists_url":"https://api.github.com/users/Project-OSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/Project-OSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Project-OSRM/subscriptions","organizations_url":"https://api.github.com/users/Project-OSRM/orgs","repos_url":"https://api.github.com/users/Project-OSRM/repos","events_url":"https://api.github.com/users/Project-OSRM/events{/privacy}","received_events_url":"https://api.github.com/users/Project-OSRM/received_events","type":"Organization","site_admin":false},"repo":{"id":24060645,"name":"osrm-frontend-v2","full_name":"Project-OSRM/osrm-frontend-v2","owner":{"login":"Project-OSRM","id":8207060,"avatar_url":"https://avatars.githubusercontent.com/u/8207060?v=3","gravatar_id":"","url":"https://api.github.com/users/Project-OSRM","html_url":"https://github.com/Project-OSRM","followers_url":"https://api.github.com/users/Project-OSRM/followers","following_url":"https://api.github.com/users/Project-OSRM/following{/other_user}","gists_url":"https://api.github.com/users/Project-OSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/Project-OSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Project-OSRM/subscriptions","organizations_url":"https://api.github.com/users/Project-OSRM/orgs","repos_url":"https://api.github.com/users/Project-OSRM/repos","events_url":"https://api.github.com/users/Project-OSRM/events{/privacy}","received_events_url":"https://api.github.com/users/Project-OSRM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Project-OSRM/osrm-frontend-v2","description":"Modular rewrite of the OSRM frontend using LRM","fork":false,"url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2","forks_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/forks","keys_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/teams","hooks_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/hooks","issue_events_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/events{/number}","events_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/events","assignees_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/assignees{/user}","branches_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/branches{/branch}","tags_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/tags","blobs_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/languages","stargazers_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/stargazers","contributors_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/contributors","subscribers_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/subscribers","subscription_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/subscription","commits_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/comments/{number}","contents_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/contents/{+path}","compare_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/merges","archive_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/downloads","issues_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues{/number}","pulls_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/labels{/name}","releases_url":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/releases{/id}","created_at":"2014-09-15T14:57:50Z","updated_at":"2015-02-13T08:45:23Z","pushed_at":"2014-12-11T01:46:32Z","git_url":"git://github.com/Project-OSRM/osrm-frontend-v2.git","ssh_url":"git@github.com:Project-OSRM/osrm-frontend-v2.git","clone_url":"https://github.com/Project-OSRM/osrm-frontend-v2.git","svn_url":"https://github.com/Project-OSRM/osrm-frontend-v2","homepage":"","size":1376,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":20,"forks":4,"open_issues":20,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42"},"html":{"href":"https://github.com/Project-OSRM/osrm-frontend-v2/pull/42"},"issue":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/42"},"comments":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/Project-OSRM/osrm-frontend-v2/statuses/96c9a5251dd4e7f5089f1805037759b3bb3fcc39"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}