{"action":"created","issue":{"url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/16","labels_url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/16/comments","events_url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/16/events","html_url":"https://github.com/garakh/kladrapi-jsclient/issues/16","id":49198445,"number":16,"title":"Программная вставка улицы вызывает ошибку parentType must equal \"city\" ","user":{"login":"lukyoung","id":644251,"avatar_url":"https://avatars.githubusercontent.com/u/644251?v=3","gravatar_id":"","url":"https://api.github.com/users/lukyoung","html_url":"https://github.com/lukyoung","followers_url":"https://api.github.com/users/lukyoung/followers","following_url":"https://api.github.com/users/lukyoung/following{/other_user}","gists_url":"https://api.github.com/users/lukyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/lukyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukyoung/subscriptions","organizations_url":"https://api.github.com/users/lukyoung/orgs","repos_url":"https://api.github.com/users/lukyoung/repos","events_url":"https://api.github.com/users/lukyoung/events{/privacy}","received_events_url":"https://api.github.com/users/lukyoung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-11-18T09:22:36Z","updated_at":"2015-04-07T12:12:42Z","closed_at":null,"body":"Использую ваш плагин для jQuery. Программно вставляю данные в форму, использую конструкцию:\r\n\r\n        $region.kladr({type: $.kladr.type.region, verify: true});\r\n        $district.kladr({type: $.kladr.type.district, verify: true});\r\n        $city.kladr({type: $.kladr.type.city, verify: true});\r\n        $street.kladr({type: $.kladr.type.street, verify: true, withParents: true});\r\n        $building.kladr({type: $.kladr.type.building, verify: true});\r\n\r\n        $region.val(options.data.region).trigger('change');\r\n        $district.val(options.data.district).trigger('change');\r\n        $city.val(options.data.city).trigger('change');\r\n        $street.val(options.data.street).trigger('change');\r\n        $building.kladr({'verify': true});\r\n        $building.val(options.data.building).trigger('change');\r\n\r\nна $street вылетает с: parentType must equal \"city\" "},"comment":{"url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/comments/90530543","html_url":"https://github.com/garakh/kladrapi-jsclient/issues/16#issuecomment-90530543","issue_url":"https://api.github.com/repos/garakh/kladrapi-jsclient/issues/16","id":90530543,"user":{"login":"garakh","id":1879046,"avatar_url":"https://avatars.githubusercontent.com/u/1879046?v=3","gravatar_id":"","url":"https://api.github.com/users/garakh","html_url":"https://github.com/garakh","followers_url":"https://api.github.com/users/garakh/followers","following_url":"https://api.github.com/users/garakh/following{/other_user}","gists_url":"https://api.github.com/users/garakh/gists{/gist_id}","starred_url":"https://api.github.com/users/garakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garakh/subscriptions","organizations_url":"https://api.github.com/users/garakh/orgs","repos_url":"https://api.github.com/users/garakh/repos","events_url":"https://api.github.com/users/garakh/events{/privacy}","received_events_url":"https://api.github.com/users/garakh/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T12:12:42Z","updated_at":"2015-04-07T12:12:42Z","body":"Я не совсем понимаю вашу задачу. Если нужно проставить конкретный streetId для здания, то установите  building.kladr( 'parentId', '77000000000293700' ); Ваш пример выглядит верным. Пользователь выбирает улицу, ID этой улицы устанавливается родителем для дома. "}}