{"action":"created","issue":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/3231","repository_url":"https://api.github.com/repos/osmandapp/Osmand","labels_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3231/labels{/name}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3231/comments","events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3231/events","html_url":"https://github.com/osmandapp/Osmand/issues/3231","id":187387780,"number":3231,"title":"Multipolygons with `role:house` in the associatedStreets are breaking search of house numbers","user":{"login":"Andygol","id":369696,"avatar_url":"https://avatars.githubusercontent.com/u/369696?v=3","gravatar_id":"","url":"https://api.github.com/users/Andygol","html_url":"https://github.com/Andygol","followers_url":"https://api.github.com/users/Andygol/followers","following_url":"https://api.github.com/users/Andygol/following{/other_user}","gists_url":"https://api.github.com/users/Andygol/gists{/gist_id}","starred_url":"https://api.github.com/users/Andygol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andygol/subscriptions","organizations_url":"https://api.github.com/users/Andygol/orgs","repos_url":"https://api.github.com/users/Andygol/repos","events_url":"https://api.github.com/users/Andygol/events{/privacy}","received_events_url":"https://api.github.com/users/Andygol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vshcherb","id":1042025,"avatar_url":"https://avatars.githubusercontent.com/u/1042025?v=3","gravatar_id":"","url":"https://api.github.com/users/vshcherb","html_url":"https://github.com/vshcherb","followers_url":"https://api.github.com/users/vshcherb/followers","following_url":"https://api.github.com/users/vshcherb/following{/other_user}","gists_url":"https://api.github.com/users/vshcherb/gists{/gist_id}","starred_url":"https://api.github.com/users/vshcherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshcherb/subscriptions","organizations_url":"https://api.github.com/users/vshcherb/orgs","repos_url":"https://api.github.com/users/vshcherb/repos","events_url":"https://api.github.com/users/vshcherb/events{/privacy}","received_events_url":"https://api.github.com/users/vshcherb/received_events","type":"User","site_admin":false},"assignees":[{"login":"vshcherb","id":1042025,"avatar_url":"https://avatars.githubusercontent.com/u/1042025?v=3","gravatar_id":"","url":"https://api.github.com/users/vshcherb","html_url":"https://github.com/vshcherb","followers_url":"https://api.github.com/users/vshcherb/followers","following_url":"https://api.github.com/users/vshcherb/following{/other_user}","gists_url":"https://api.github.com/users/vshcherb/gists{/gist_id}","starred_url":"https://api.github.com/users/vshcherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshcherb/subscriptions","organizations_url":"https://api.github.com/users/vshcherb/orgs","repos_url":"https://api.github.com/users/vshcherb/repos","events_url":"https://api.github.com/users/vshcherb/events{/privacy}","received_events_url":"https://api.github.com/users/vshcherb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-04T17:05:39Z","updated_at":"2016-11-04T22:51:40Z","closed_at":"2016-11-04T22:51:40Z","body":"A similar issue was raised in #3064 and I would like to renew that ticket.\r\n\r\ncc @vshcherb \r\n\r\n---\r\n\r\nIn case if the buildings multipolygons are the members of the associatedStreets relation with an assigned `role:house` it becomes impossible to find those building multipolygons in a search dialog pane and get info about their addresses via a pin drawer. Some buildings that are formed as closed ways, and are members of the relation, are missing in search results too.\r\n\r\nHere is an example - the relation `Velyka Diivska Street` in Dnipro, Ukraine <http://www.openstreetmap.org/relation/1182272>\r\n\r\nBuilding with the `addr:housenumber=22` is a [multipolygon](http://www.openstreetmap.org/relation/6084859) but other buildings with numbers `22а`, `24`, `24а` that were formed as closed ways and they are missed out in the search result too. The next building listed after the building with `addr:housenumber=12` is one with `addr:housenumber=26` - <http://www.openstreetmap.org/way/37848865>.\r\n\r\nSome buildings in this `associatedStreets` relation have tag `addr:street=Велика Діївська вулиця`, some don't have.\r\n\r\nOsmAnd|OSM data\r\n---|---\r\n![image](https://cloud.githubusercontent.com/assets/369696/20007336/705e4f12-a2a4-11e6-8d2b-88ac08838ccf.png) | ![image](https://cloud.githubusercontent.com/assets/369696/20007352/8bce8820-a2a4-11e6-93ea-fac077e07b96.png)\r\n\r\nI downloaded `OsmAndMapCreator` and conducted several experiments. (Now, by using current map data, houses at streets described below weren't found)\r\n\r\n1.  I added tag `addr:street` to all members with `role:house`of the  associatedStreets relation for `Monitornaya Street`, and\r\n2.  I removed the building that was formed as a multipolygon from the relation of `Metrobudivska Street` and removed the tag `addr:street` from buildings along this street.\r\n\r\nAfter that, I converted locally these changes for testing.\r\n\r\nAnd for houses along these streets a search function started to work as was expected.\r\n\r\nMap Data | Monitornaya Street | Metrobudivska Street\r\n---|---|---\r\n![s61104-16081669](https://cloud.githubusercontent.com/assets/369696/20009129/f44b7e56-a2ab-11e6-8a98-016e0dc57c97.jpg) | ![s61104-16073480](https://cloud.githubusercontent.com/assets/369696/20009135/fc0a096e-a2ab-11e6-982d-e56d1e967746.jpg) | ![s61104-16362094](https://cloud.githubusercontent.com/assets/369696/20009395/062f1910-a2ad-11e6-9a99-af17c9ca9b77.jpg)\r\n\r\nThe example of the data after changes -- [Osmand_test.obf.zip](https://github.com/osmandapp/Osmand/files/571760/Osmand_test.obf.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/comments/258566646","html_url":"https://github.com/osmandapp/Osmand/issues/3231#issuecomment-258566646","issue_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3231","id":258566646,"user":{"login":"vshcherb","id":1042025,"avatar_url":"https://avatars.githubusercontent.com/u/1042025?v=3","gravatar_id":"","url":"https://api.github.com/users/vshcherb","html_url":"https://github.com/vshcherb","followers_url":"https://api.github.com/users/vshcherb/followers","following_url":"https://api.github.com/users/vshcherb/following{/other_user}","gists_url":"https://api.github.com/users/vshcherb/gists{/gist_id}","starred_url":"https://api.github.com/users/vshcherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshcherb/subscriptions","organizations_url":"https://api.github.com/users/vshcherb/orgs","repos_url":"https://api.github.com/users/vshcherb/repos","events_url":"https://api.github.com/users/vshcherb/events{/privacy}","received_events_url":"https://api.github.com/users/vshcherb/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T22:51:40Z","updated_at":"2016-11-04T22:51:40Z","body":"https://github.com/osmandapp/OsmAnd-tools/commit/a19e120e7315f016879a3a77e3719932ee352d6d"}}
{"actor":{"display_login":"vshcherb"}}