{"action":"created","issue":{"url":"https://api.github.com/repos/pelias/docker/issues/61","repository_url":"https://api.github.com/repos/pelias/docker","labels_url":"https://api.github.com/repos/pelias/docker/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/pelias/docker/issues/61/comments","events_url":"https://api.github.com/repos/pelias/docker/issues/61/events","html_url":"https://github.com/pelias/docker/issues/61","id":393855555,"node_id":"MDU6SXNzdWUzOTM4NTU1NTU=","number":61,"title":"Problem with forward gocoding results","user":{"login":"w0jtis","id":43935066,"node_id":"MDQ6VXNlcjQzOTM1MDY2","avatar_url":"https://avatars0.githubusercontent.com/u/43935066?v=4","gravatar_id":"","url":"https://api.github.com/users/w0jtis","html_url":"https://github.com/w0jtis","followers_url":"https://api.github.com/users/w0jtis/followers","following_url":"https://api.github.com/users/w0jtis/following{/other_user}","gists_url":"https://api.github.com/users/w0jtis/gists{/gist_id}","starred_url":"https://api.github.com/users/w0jtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0jtis/subscriptions","organizations_url":"https://api.github.com/users/w0jtis/orgs","repos_url":"https://api.github.com/users/w0jtis/repos","events_url":"https://api.github.com/users/w0jtis/events{/privacy}","received_events_url":"https://api.github.com/users/w0jtis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-24T10:35:17Z","updated_at":"2019-01-02T20:02:57Z","closed_at":null,"author_association":"NONE","body":"Hello guys, I use Pelias in docker and I have some problem with forward geocoding . The problems is when I geocode adders from same city on the same street, the geocoder returns incomplete informations. I present this situtaion based on two address example like :\r\n\r\nSłoneczna 1 Myślenice [street,city,number]\r\nSłoneczna 4 Myślenice [street,city,number]\r\nSo when i geoocde the first adders the gecoder returns :\r\n\r\n{u'geometry': {u'type': u'Point', u'coordinates': [19.947045, 49.836457]}, u'type': u'Feature', u'properties': {u'layer': u'address', u'match_type': u'exact', u'county_gid': u'whosonfirst:county:102079441', u'region_gid': u'whosonfirst:region:85687291', u'county': u'My\\xc5lenicki', u'street': u'S\\u0142oneczna', u'country_a': u'POL', u'label': u'1 S\\u0142oneczna, My\\u015blenice, Poland', u'id': u'pl/dane_ref:580c0a82-29bb-4a70-85e0-ba0f7c735e58', u'confidence': 1, u'locality': u'My\\u015blenice', u'continent': u'Europe', u'source': u'openaddresses', u'gid': u'openaddresses:address:pl/dane_ref:580c0a82-29bb-4a70-85e0-ba0f7c735e58', u'housenumber': u'1', u'accuracy': u'point', u'country_gid': u'whosonfirst:country:85633723', u'source_id': u'pl/dane_ref:580c0a82-29bb-4a70-85e0-ba0f7c735e58', u'postalcode': u'32-400', u'continent_gid': u'whosonfirst:continent:102191581', u'distance': 4.415, u'name': u'1 S\\u0142oneczna', u'locality_gid': u'whosonfirst:locality:101826165', u'country': u'Poland', u'region': u'Lesser Poland Voivodeship', u'region_a': u'MA'}} - This is a raw_result from geopy\r\n\r\n1 Słoneczna, Myślenice, Poland - This is a label from raw_result\r\nIn this example everything is ok .\r\n\r\nSecond example :\r\n{u'geometry': {u'type': u'Point', u'coordinates': [19.939914, 49.833548]}, u'type': u'Feature', u'properties': {u'layer': u'locality', u'match_type': u'fallback', u'county_gid': u'whosonfirst:county:102079441', u'region_gid': u'whosonfirst:region:85687291', u'county': u'My\\xc5lenicki', u'country_a': u'POL', u'label': u'My\\u015blenice, Poland', u'continent': u'Europe', u'confidence': 0.6, u'locality': u'My\\u015blenice', u'id': u'101826165', u'source': u'whosonfirst', u'gid': u'whosonfirst:locality:101826165', u'accuracy': u'centroid', u'country_gid': u'whosonfirst:country:85633723', u'source_id': u'101826165', u'continent_gid': u'whosonfirst:continent:102191581', u'distance': 5, u'name': u'My\\u015blenice', u'locality_gid': u'whosonfirst:locality:101826165', u'country': u'Poland', u'region': u'Lesser Poland Voivodeship', u'region_a': u'MA'}, u'bbox': [19.8978956349, 49.8266998886, 19.9624726392, 49.8429191096]} - This is a raw_result from geopy\r\n\r\nMyślenice, Poland - This is a label from raw_result\r\n\r\nSth is wrong. Why in this example the geocoder returns the centroid of city ? I have this address in database from openaddresses so why geocoder dosent return appropriate coordinates?\r\n\r\nSo after that i decide to geocode this address but without city name. Gecoder returns a few addresses from different city,among them the one that interested me. ( I recognized this adders by postal code)\r\n{u'geometry': {u'type': u'Point', u'coordinates': [19.949678, 49.832716]}, u'type': u'Feature', u'properties': {u'layer': u'address', u'match_type': u'exact', u'county_gid': u'whosonfirst:county:102079441', u'region_gid': u'whosonfirst:region:85687291', u'county': u'My\\xc5lenicki', u'street': u'S\\u0142oneczna', u'country_a': u'POL', u'label': u'4 S\\u0142oneczna, Poland', u'continent': u'Europe', u'confidence': 1, u'id': u'pl/dane_ref:4d9f04f9-6eb3-4a45-867e-a955834650a8', u'source': u'openaddresses', u'gid': u'openaddresses:address:pl/dane_ref:4d9f04f9-6eb3-4a45-867e-a955834650a8', u'housenumber': u'4', u'accuracy': u'point', u'country_gid': u'whosonfirst:country:85633723', u'source_id': u'pl/dane_ref:4d9f04f9-6eb3-4a45-867e-a955834650a8', u'postalcode': u'32-400', u'continent_gid': u'whosonfirst:continent:102191581', u'distance': 4.373, u'name': u'4 S\\u0142oneczna', u'country': u'Poland', u'region': u'Lesser Poland Voivodeship', u'region_a': u'MA'}}\r\n4 Słoneczna, Poland - This is a label from raw_result\r\nThe question is why in this results label is without the City name (WOF locality) ? Is it a problem with WOF data or datbase?\r\n\r\nI am so confused because without the city name (locality) in results it is hard to decide that this results is correct. What should i do in this situation?"},"comment":{"url":"https://api.github.com/repos/pelias/docker/issues/comments/450969180","html_url":"https://github.com/pelias/docker/issues/61#issuecomment-450969180","issue_url":"https://api.github.com/repos/pelias/docker/issues/61","id":450969180,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDk2OTE4MA==","user":{"login":"missinglink","id":738069,"node_id":"MDQ6VXNlcjczODA2OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/738069?v=4","gravatar_id":"","url":"https://api.github.com/users/missinglink","html_url":"https://github.com/missinglink","followers_url":"https://api.github.com/users/missinglink/followers","following_url":"https://api.github.com/users/missinglink/following{/other_user}","gists_url":"https://api.github.com/users/missinglink/gists{/gist_id}","starred_url":"https://api.github.com/users/missinglink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missinglink/subscriptions","organizations_url":"https://api.github.com/users/missinglink/orgs","repos_url":"https://api.github.com/users/missinglink/repos","events_url":"https://api.github.com/users/missinglink/events{/privacy}","received_events_url":"https://api.github.com/users/missinglink/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T20:02:57Z","updated_at":"2019-01-02T20:02:57Z","author_association":"MEMBER","body":"I'm having issues trying to read your examples, the geojson seems to be mangled by software.\r\n\r\nCan you please post it again enclosed in backticks (see GitHub markdown guidelines) or via a pastebin."}}
{"actor":{"display_login":"missinglink"}}