{"action":"created","issue":{"url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/31","labels_url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/31/comments","events_url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/31/events","html_url":"https://github.com/Gubaer/josm-scripting-plugin/issues/31","id":112664948,"number":31,"title":" merge  roads using scripting plugin. ","user":{"login":"Rub21","id":1152236,"avatar_url":"https://avatars.githubusercontent.com/u/1152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Rub21","html_url":"https://github.com/Rub21","followers_url":"https://api.github.com/users/Rub21/followers","following_url":"https://api.github.com/users/Rub21/following{/other_user}","gists_url":"https://api.github.com/users/Rub21/gists{/gist_id}","starred_url":"https://api.github.com/users/Rub21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rub21/subscriptions","organizations_url":"https://api.github.com/users/Rub21/orgs","repos_url":"https://api.github.com/users/Rub21/repos","events_url":"https://api.github.com/users/Rub21/events{/privacy}","received_events_url":"https://api.github.com/users/Rub21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T19:44:53Z","updated_at":"2015-10-21T20:34:05Z","closed_at":null,"body":"@Gubaer  :\r\nThis is nice tool :+1: \r\nI have a question, is there a way to merge two roads by id in JavaScript? ,  Might be as a next function, I \r\n\r\n```\r\nvar command = require(\"josm/command\");\r\nvar way3 = command.merge(way1.id,wa2.id);\r\n\r\n```\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/comments/150016647","html_url":"https://github.com/Gubaer/josm-scripting-plugin/issues/31#issuecomment-150016647","issue_url":"https://api.github.com/repos/Gubaer/josm-scripting-plugin/issues/31","id":150016647,"user":{"login":"Rub21","id":1152236,"avatar_url":"https://avatars.githubusercontent.com/u/1152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Rub21","html_url":"https://github.com/Rub21","followers_url":"https://api.github.com/users/Rub21/followers","following_url":"https://api.github.com/users/Rub21/following{/other_user}","gists_url":"https://api.github.com/users/Rub21/gists{/gist_id}","starred_url":"https://api.github.com/users/Rub21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rub21/subscriptions","organizations_url":"https://api.github.com/users/Rub21/orgs","repos_url":"https://api.github.com/users/Rub21/repos","events_url":"https://api.github.com/users/Rub21/events{/privacy}","received_events_url":"https://api.github.com/users/Rub21/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T20:34:05Z","updated_at":"2015-10-21T20:34:05Z","body":"@alex85k : I mean  `combine two ways`  the command  exist in JOSM , but I don't know how can I use it from scripting \r\n![screenshot from 2015-10-21 15 32 06](https://cloud.githubusercontent.com/assets/1152236/10649341/1dcbef3c-7809-11e5-9c97-403ceca825d3.png)\r\n"}}