{"action":"created","issue":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/251","repository_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine","labels_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/251/comments","events_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/251/events","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/251","id":155441055,"number":251,"title":"How to initialize geocoder object Leaflet routing machine","user":{"login":"marie15","id":14139375,"avatar_url":"https://avatars.githubusercontent.com/u/14139375?v=3","gravatar_id":"","url":"https://api.github.com/users/marie15","html_url":"https://github.com/marie15","followers_url":"https://api.github.com/users/marie15/followers","following_url":"https://api.github.com/users/marie15/following{/other_user}","gists_url":"https://api.github.com/users/marie15/gists{/gist_id}","starred_url":"https://api.github.com/users/marie15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marie15/subscriptions","organizations_url":"https://api.github.com/users/marie15/orgs","repos_url":"https://api.github.com/users/marie15/repos","events_url":"https://api.github.com/users/marie15/events{/privacy}","received_events_url":"https://api.github.com/users/marie15/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T08:12:40Z","updated_at":"2016-05-18T15:56:49Z","closed_at":"2016-05-18T11:44:51Z","body":"Hi everybody, I'm using Leaflet routing machine plugin and control geocoder to calculate route between two locations. I've successed to do that, but when I want for a second time to enter two locations, a new geocoder object were created, so in my application I got two object. What I want is when I close the route interface, the itinerary will be removed from map, and when I reopen it I want to have a geocoder object with empty input. I hope that I was clear.\r\n\r\nThanks for advance :)"},"comment":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/comments/220072967","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/251#issuecomment-220072967","issue_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/251","id":220072967,"user":{"login":"marie15","id":14139375,"avatar_url":"https://avatars.githubusercontent.com/u/14139375?v=3","gravatar_id":"","url":"https://api.github.com/users/marie15","html_url":"https://github.com/marie15","followers_url":"https://api.github.com/users/marie15/followers","following_url":"https://api.github.com/users/marie15/following{/other_user}","gists_url":"https://api.github.com/users/marie15/gists{/gist_id}","starred_url":"https://api.github.com/users/marie15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marie15/subscriptions","organizations_url":"https://api.github.com/users/marie15/orgs","repos_url":"https://api.github.com/users/marie15/repos","events_url":"https://api.github.com/users/marie15/events{/privacy}","received_events_url":"https://api.github.com/users/marie15/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T15:56:49Z","updated_at":"2016-05-18T15:56:49Z","body":"I tried this snippet code but I got this error : Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."}}