{"action":"created","issue":{"url":"https://api.github.com/repos/openvenues/gopostal/issues/2","repository_url":"https://api.github.com/repos/openvenues/gopostal","labels_url":"https://api.github.com/repos/openvenues/gopostal/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/openvenues/gopostal/issues/2/comments","events_url":"https://api.github.com/repos/openvenues/gopostal/issues/2/events","html_url":"https://github.com/openvenues/gopostal/issues/2","id":136491748,"number":2,"title":"Are Parsed Address Labels Unique?","user":{"login":"theory","id":46604,"avatar_url":"https://avatars.githubusercontent.com/u/46604?v=3","gravatar_id":"","url":"https://api.github.com/users/theory","html_url":"https://github.com/theory","followers_url":"https://api.github.com/users/theory/followers","following_url":"https://api.github.com/users/theory/following{/other_user}","gists_url":"https://api.github.com/users/theory/gists{/gist_id}","starred_url":"https://api.github.com/users/theory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theory/subscriptions","organizations_url":"https://api.github.com/users/theory/orgs","repos_url":"https://api.github.com/users/theory/repos","events_url":"https://api.github.com/users/theory/events{/privacy}","received_events_url":"https://api.github.com/users/theory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T19:52:02Z","updated_at":"2016-02-25T20:57:29Z","closed_at":null,"body":"Are the labels in all of the parsed address components unique for a single address? If so, it might be useful to create a type on `ParsedComponent[]` that can convert to and from a map, and marshall and unmarshall JSON."},"comment":{"url":"https://api.github.com/repos/openvenues/gopostal/issues/comments/188983067","html_url":"https://github.com/openvenues/gopostal/issues/2#issuecomment-188983067","issue_url":"https://api.github.com/repos/openvenues/gopostal/issues/2","id":188983067,"user":{"login":"thatdatabaseguy","id":238455,"avatar_url":"https://avatars.githubusercontent.com/u/238455?v=3","gravatar_id":"","url":"https://api.github.com/users/thatdatabaseguy","html_url":"https://github.com/thatdatabaseguy","followers_url":"https://api.github.com/users/thatdatabaseguy/followers","following_url":"https://api.github.com/users/thatdatabaseguy/following{/other_user}","gists_url":"https://api.github.com/users/thatdatabaseguy/gists{/gist_id}","starred_url":"https://api.github.com/users/thatdatabaseguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatdatabaseguy/subscriptions","organizations_url":"https://api.github.com/users/thatdatabaseguy/orgs","repos_url":"https://api.github.com/users/thatdatabaseguy/repos","events_url":"https://api.github.com/users/thatdatabaseguy/events{/privacy}","received_events_url":"https://api.github.com/users/thatdatabaseguy/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T20:57:29Z","updated_at":"2016-02-25T20:57:29Z","body":"Not necessarily. This article has some examples of where duped components can occur: https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/. Not saying the libpostal parser handles all of them correctly, just that it's possible.\r\n\r\nAs JSON, a parse could be represented as:\r\n\r\n```\r\n{\r\n    \"components\": [\r\n        {\"label\": \"house_number\", \"component\": \"123\"},\r\n        {\"label\": \"road\", \"component\": \"main street\"}\r\n    ]\r\n}\r\n```\r\n\r\nWe could wrap the ParsedComponent array in a response type that can be easily serialized. Thoughts?"}}