{"action":"created","comment":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/75819970","id":75819970,"diff_hunk":"@@ -858,4 +858,201 @@ class AssetDataImporter {\n     }\n     props\n   }\n+\n+  /**\n+    * Get address information to mass transit stop assets from VVH road link (DROTH-221).\n+    *\n+    * @param vvhRestApiEndPoint\n+    */\n+  def getMassTransitStopAddressesFromVVH(vvhRestApiEndPoint: String) = {\n+    val vvhClient = new VVHClient(vvhRestApiEndPoint)\n+    withDynTransaction {\n+      println(\"Phase 1 out of 2. Getting stops with both names missing\")\n+      val municipalities = getMTStopsMunicipalitycodeBothMissing()\n+      municipalities.foreach { municipalityCode =>\n+        val startTime = DateTime.now()\n+        println(s\"*** Processing municipality: $municipalityCode\")\n+        val listOfStops = getMTStopsWOAddresses(municipalityCode)\n+        val roadLinks = vvhClient.fetchByMunicipality(municipalityCode)","path":"digiroad2-oracle/src/main/scala/fi/liikennevirasto/digiroad2/util/AssetDataImporter.scala","position":19,"original_position":19,"commit_id":"011b234ca18c7672fec687b263e1ec6a5cda57f2","original_commit_id":"011b234ca18c7672fec687b263e1ec6a5cda57f2","user":{"login":"leirasf","id":15817485,"avatar_url":"https://avatars.githubusercontent.com/u/15817485?v=3","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 method you can use to get all roadlinks by ids is \"fetchVVHRoadlinks\".","created_at":"2016-08-23T08:16:49Z","updated_at":"2016-08-23T08:16:49Z","html_url":"https://github.com/finnishtransportagency/digiroad2/pull/532#discussion_r75819970","pull_request_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532","_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/75819970"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/532#discussion_r75819970"},"pull_request":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532"}}},"pull_request":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532","id":82148753,"html_url":"https://github.com/finnishtransportagency/digiroad2/pull/532","diff_url":"https://github.com/finnishtransportagency/digiroad2/pull/532.diff","patch_url":"https://github.com/finnishtransportagency/digiroad2/pull/532.patch","issue_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/532","number":532,"state":"open","locked":false,"title":"Droth 221 bus stop address information batch process","user":{"login":"oappicgi","id":20458699,"avatar_url":"https://avatars.githubusercontent.com/u/20458699?v=3","gravatar_id":"","url":"https://api.github.com/users/oappicgi","html_url":"https://github.com/oappicgi","followers_url":"https://api.github.com/users/oappicgi/followers","following_url":"https://api.github.com/users/oappicgi/following{/other_user}","gists_url":"https://api.github.com/users/oappicgi/gists{/gist_id}","starred_url":"https://api.github.com/users/oappicgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oappicgi/subscriptions","organizations_url":"https://api.github.com/users/oappicgi/orgs","repos_url":"https://api.github.com/users/oappicgi/repos","events_url":"https://api.github.com/users/oappicgi/events{/privacy}","received_events_url":"https://api.github.com/users/oappicgi/received_events","type":"User","site_admin":false},"body":"DROTH 220 & DROTH-221\r\n\r\nMass transit stops addresses field to Kalpa-Api \r\n&\r\nbatch process to collect missing addresses from VVH in two phase process\r\n(\r\n1. collect addresses to stops which are missing both  Finnish and Swedish address\r\n2. collect addresses which are missing either Finnish or Swedish address and existing address corresponds to one found in VVH.\r\n)  ","created_at":"2016-08-22T08:05:19Z","updated_at":"2016-08-23T08:16:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f7f60c81ceeb56419d178833dad7ab276407df8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532/commits","review_comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532/comments","review_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/532/comments","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/011b234ca18c7672fec687b263e1ec6a5cda57f2","head":{"label":"finnishtransportagency:DROTH-221_bus_stop_address_information_batch_process","ref":"DROTH-221_bus_stop_address_information_batch_process","sha":"011b234ca18c7672fec687b263e1ec6a5cda57f2","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","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://avatars.githubusercontent.com/u/5737015?v=3","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":"2016-08-02T10:39:58Z","pushed_at":"2016-08-22T17:55:32Z","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":219124,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":6,"default_branch":"master"}},"base":{"label":"finnishtransportagency:master","ref":"master","sha":"dbdaea6ddba6448a35496e6e20a04df5d4384c7f","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","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://avatars.githubusercontent.com/u/5737015?v=3","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":"2016-08-02T10:39:58Z","pushed_at":"2016-08-22T17:55:32Z","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":219124,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/532"},"issue":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/532"},"comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/532/comments"},"review_comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532/comments"},"review_comment":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/532/commits"},"statuses":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/011b234ca18c7672fec687b263e1ec6a5cda57f2"}}}}
{"actor":{"display_login":"leirasf"}}