{"action":"closed","issue":{"url":"https://api.github.com/repos/pelias/pelias/issues/123","labels_url":"https://api.github.com/repos/pelias/pelias/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/pelias/pelias/issues/123/comments","events_url":"https://api.github.com/repos/pelias/pelias/issues/123/events","html_url":"https://github.com/pelias/pelias/issues/123","id":104781364,"number":123,"title":"Regions not completely imported from Quattroshapes leads to gaps in coverage","user":{"login":"riordan","id":227472,"avatar_url":"https://avatars.githubusercontent.com/u/227472?v=3","gravatar_id":"","url":"https://api.github.com/users/riordan","html_url":"https://github.com/riordan","followers_url":"https://api.github.com/users/riordan/followers","following_url":"https://api.github.com/users/riordan/following{/other_user}","gists_url":"https://api.github.com/users/riordan/gists{/gist_id}","starred_url":"https://api.github.com/users/riordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riordan/subscriptions","organizations_url":"https://api.github.com/users/riordan/orgs","repos_url":"https://api.github.com/users/riordan/repos","events_url":"https://api.github.com/users/riordan/events{/privacy}","received_events_url":"https://api.github.com/users/riordan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pelias/pelias/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pelias/pelias/labels/data","name":"data","color":"d4c5f9"},{"url":"https://api.github.com/repos/pelias/pelias/labels/in%20review","name":"in review","color":"ededed"},{"url":"https://api.github.com/repos/pelias/pelias/labels/near%20future","name":"near future","color":"5319e7"},{"url":"https://api.github.com/repos/pelias/pelias/labels/wof-related","name":"wof-related","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"riordan","id":227472,"avatar_url":"https://avatars.githubusercontent.com/u/227472?v=3","gravatar_id":"","url":"https://api.github.com/users/riordan","html_url":"https://github.com/riordan","followers_url":"https://api.github.com/users/riordan/followers","following_url":"https://api.github.com/users/riordan/following{/other_user}","gists_url":"https://api.github.com/users/riordan/gists{/gist_id}","starred_url":"https://api.github.com/users/riordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riordan/subscriptions","organizations_url":"https://api.github.com/users/riordan/orgs","repos_url":"https://api.github.com/users/riordan/repos","events_url":"https://api.github.com/users/riordan/events{/privacy}","received_events_url":"https://api.github.com/users/riordan/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pelias/pelias/milestones/2","html_url":"https://github.com/pelias/pelias/milestones/Who's%20on%20First","labels_url":"https://api.github.com/repos/pelias/pelias/milestones/2/labels","id":1497635,"number":2,"title":"Who's on First","description":"Relying on Who's on First rather than Quattroshapes to power administrate areas and admin area reverse geocoding.\r\n\r\n* Import WOF data\r\n* Update schema to support changes made by/for WOF\r\n* Support multiple hierarchy structure (required by WOF)\r\n* Ingest and serve bounding boxes\r\n* Serve geometries from `/details` endpoint\r\n* Store parent ids (corresponding to WOF)\r\n* Support WOF ids\r\n* Investigate implications of decommissioning QS and GN\r\n* Query PIP service when doing coarse reverse","creator":{"login":"riordan","id":227472,"avatar_url":"https://avatars.githubusercontent.com/u/227472?v=3","gravatar_id":"","url":"https://api.github.com/users/riordan","html_url":"https://github.com/riordan","followers_url":"https://api.github.com/users/riordan/followers","following_url":"https://api.github.com/users/riordan/following{/other_user}","gists_url":"https://api.github.com/users/riordan/gists{/gist_id}","starred_url":"https://api.github.com/users/riordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riordan/subscriptions","organizations_url":"https://api.github.com/users/riordan/orgs","repos_url":"https://api.github.com/users/riordan/repos","events_url":"https://api.github.com/users/riordan/events{/privacy}","received_events_url":"https://api.github.com/users/riordan/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":1,"state":"open","created_at":"2016-01-11T16:21:50Z","updated_at":"2016-01-20T15:48:51Z","due_on":"2016-01-22T05:00:00Z","closed_at":null},"comments":9,"created_at":"2015-09-03T21:01:36Z","updated_at":"2016-01-20T15:48:51Z","closed_at":"2016-01-20T15:48:51Z","body":"In Quattroshapes, some areas do not map precisely to the Who's on First model of the world. This data is contained in Quattroshapes, but in the admin1_regions & admin2_regions datasets, which we did not import, so we can't remap our existing data to incorporate the missing information.\r\n\r\nExample: When searching for Hackney, a neighborhood (borough) of London, the result skips the city of London entirely as an element.\r\n\r\nex. `/v1/search?text=Hackney&size=1`\r\n```\r\n{\r\n  \"geocoding\": {\r\n    \"version\": \"0.1\",\r\n    \"license\": \"http://pelias.mapzen.com//license\",\r\n    \"attribution\": \"http://pelias.mapzen.com//attribution\",\r\n    \"query\": {\r\n      \"input\": \"hackney\",\r\n      \"parsed_input\": {\r\n        \"target_layer\": [\r\n          \"geoname\",\r\n          \"osmnode\",\r\n          \"osmway\",\r\n          \"admin0\",\r\n          \"admin1\",\r\n          \"admin2\",\r\n          \"neighborhood\",\r\n          \"locality\",\r\n          \"local_admin\"\r\n        ]\r\n      },\r\n      \"size\": 1,\r\n      \"default_layers_set\": true,\r\n      \"layers\": [\r\n        \"geoname\",\r\n        \"osmnode\",\r\n        \"osmway\",\r\n        \"admin0\",\r\n        \"admin1\",\r\n        \"admin2\",\r\n        \"neighborhood\",\r\n        \"locality\",\r\n        \"local_admin\",\r\n        \"osmaddress\",\r\n        \"openaddresses\"\r\n      ],\r\n      \"details\": true\r\n    },\r\n    \"engine\": {\r\n      \"name\": \"Pelias\",\r\n      \"author\": \"Mapzen\",\r\n      \"version\": \"1.0\"\r\n    },\r\n    \"timestamp\": 1441312418516\r\n  },\r\n  \"type\": \"FeatureCollection\",\r\n  \"features\": [\r\n    {\r\n      \"type\": \"Feature\",\r\n      \"properties\": {\r\n        \"geocoding\": {\r\n          \"id\": \"3582:adm1:gb:gbr:hackney\",\r\n          \"layer\": \"region\",\r\n          \"source\": \"qs\",\r\n          \"name\": \"Hackney\",\r\n          \"country_a\": \"GBR\",\r\n          \"country\": \"United Kingdom\",\r\n          \"region\": \"Hackney\",\r\n          \"label\": \"Hackney, United Kingdom\"\r\n        }\r\n      },\r\n      \"geometry\": {\r\n        \"type\": \"Point\",\r\n        \"coordinates\": [\r\n          -0.0633702197991269,\r\n          51.5522538450273\r\n        ]\r\n      }\r\n    }\r\n  ],\r\n  \"bbox\": [\r\n    -0.0633702197991269,\r\n    51.5522538450273,\r\n    -0.0633702197991269,\r\n    51.5522538450273\r\n  ]\r\n}\r\n```\r\n\r\nTwo paths to resolution:\r\n1. refactoring [pelias/openstreetmap](https://github.com/pelias/openstreetmap) to bring the Quattroshapes Admin1 Region & Admin2 Region into the import\r\n2. Incorporate [Who's on First](https://github.com/whosonfirst) as Pelias' replacement for Quattroshapes, which already holds the correct model and data (something which we'll have to do anyway in the very near future)."}}