{"action":"created","comment":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/176367735","pull_request_review_id":106054904,"id":176367735,"diff_hunk":"@@ -156,6 +156,27 @@\n           return returnObject;\n       });\n     };\n+\n+    /**\n+     * Search by mass transit stop Livi-id\n+     *\n+     * @param input\n+     * @returns {*}\n+     */\n+    var  massTransitStopPassengerIdSearch = function(input) {\n+      return $.when(backend.getMassTransitStopByPassengerIdForSearch(input.text)).then(function(result) {\n+        var toCoordinates = function (r) {\n+          var title = input.text + ', ' + r.municipalityName;\n+          return {title: title, lon: r.lon, lat: r.lat, nationalId: r.nationalId, resultType: \"Mtstop\"};\n+        };\n+\n+        if (result.length > 0)\n+          return _.map(result, toCoordinates);\n+        else","path":"UI/src/model/LocationSearch.js","position":20,"original_position":20,"commit_id":"b536974e9e434d2be3a2ac43290a10f8cb09c169","original_commit_id":"b536974e9e434d2be3a2ac43290a10f8cb09c169","user":{"login":"leirasf","id":15817485,"avatar_url":"https://avatars1.githubusercontent.com/u/15817485?v=4","gravatar_id":"","url":"https://api.github.com/users/leirasf","html_url":"https://github.com/leirasf","followers_url":"https://api.github.com/users/leirasf/followers","following_url":"https://api.github.com/users/leirasf/following{/other_user}","gists_url":"https://api.github.com/users/leirasf/gists{/gist_id}","starred_url":"https://api.github.com/users/leirasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leirasf/subscriptions","organizations_url":"https://api.github.com/users/leirasf/orgs","repos_url":"https://api.github.com/users/leirasf/repos","events_url":"https://api.github.com/users/leirasf/events{/privacy}","received_events_url":"https://api.github.com/users/leirasf/received_events","type":"User","site_admin":false},"body":"The else is not needed","created_at":"2018-03-22T10:18:04Z","updated_at":"2018-03-22T10:21:10Z","html_url":"https://github.com/finnishtransportagency/digiroad2/pull/1164#discussion_r176367735","pull_request_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/176367735"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/1164#discussion_r176367735"},"pull_request":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164"}}},"pull_request":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164","id":173410150,"html_url":"https://github.com/finnishtransportagency/digiroad2/pull/1164","diff_url":"https://github.com/finnishtransportagency/digiroad2/pull/1164.diff","patch_url":"https://github.com/finnishtransportagency/digiroad2/pull/1164.patch","issue_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/1164","number":1164,"state":"open","locked":false,"title":"Droth 1207 search with the passenger id for the bus stops","user":{"login":"oskarmalmstrom","id":19705734,"avatar_url":"https://avatars3.githubusercontent.com/u/19705734?v=4","gravatar_id":"","url":"https://api.github.com/users/oskarmalmstrom","html_url":"https://github.com/oskarmalmstrom","followers_url":"https://api.github.com/users/oskarmalmstrom/followers","following_url":"https://api.github.com/users/oskarmalmstrom/following{/other_user}","gists_url":"https://api.github.com/users/oskarmalmstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/oskarmalmstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oskarmalmstrom/subscriptions","organizations_url":"https://api.github.com/users/oskarmalmstrom/orgs","repos_url":"https://api.github.com/users/oskarmalmstrom/repos","events_url":"https://api.github.com/users/oskarmalmstrom/events{/privacy}","received_events_url":"https://api.github.com/users/oskarmalmstrom/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-07T10:28:47Z","updated_at":"2018-03-22T10:21:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164/commits","review_comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164/comments","review_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/1164/comments","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/b536974e9e434d2be3a2ac43290a10f8cb09c169","head":{"label":"finnishtransportagency:DROTH-1207_Search_with_the_passengerID_for_the_bus_stops","ref":"DROTH-1207_Search_with_the_passengerID_for_the_bus_stops","sha":"b536974e9e434d2be3a2ac43290a10f8cb09c169","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars1.githubusercontent.com/u/5737015?v=4","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":13739672,"name":"digiroad2","full_name":"finnishtransportagency/digiroad2","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars1.githubusercontent.com/u/5737015?v=4","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/digiroad2","description":"Digiroad 2 development","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/digiroad2","forks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/deployments","created_at":"2013-10-21T10:47:36Z","updated_at":"2018-03-20T10:33:25Z","pushed_at":"2018-03-22T10:20:20Z","git_url":"git://github.com/finnishtransportagency/digiroad2.git","ssh_url":"git@github.com:finnishtransportagency/digiroad2.git","clone_url":"https://github.com/finnishtransportagency/digiroad2.git","svn_url":"https://github.com/finnishtransportagency/digiroad2","homepage":"","size":273807,"stargazers_count":10,"watchers_count":10,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":8,"open_issues":5,"watchers":10,"default_branch":"master"}},"base":{"label":"finnishtransportagency:master","ref":"master","sha":"36e746c5f722c28d273bc98f55fa3fcfdbdc95da","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars1.githubusercontent.com/u/5737015?v=4","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":13739672,"name":"digiroad2","full_name":"finnishtransportagency/digiroad2","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars1.githubusercontent.com/u/5737015?v=4","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/digiroad2","description":"Digiroad 2 development","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/digiroad2","forks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/deployments","created_at":"2013-10-21T10:47:36Z","updated_at":"2018-03-20T10:33:25Z","pushed_at":"2018-03-22T10:20:20Z","git_url":"git://github.com/finnishtransportagency/digiroad2.git","ssh_url":"git@github.com:finnishtransportagency/digiroad2.git","clone_url":"https://github.com/finnishtransportagency/digiroad2.git","svn_url":"https://github.com/finnishtransportagency/digiroad2","homepage":"","size":273807,"stargazers_count":10,"watchers_count":10,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":8,"open_issues":5,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/1164"},"issue":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/1164"},"comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/1164/comments"},"review_comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164/comments"},"review_comment":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/1164/commits"},"statuses":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/b536974e9e434d2be3a2ac43290a10f8cb09c169"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"leirasf"}}