{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/4010","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4010/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4010/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4010/events","html_url":"https://github.com/CartoDB/cartodb/issues/4010","id":87306425,"number":4010,"title":"Proper params for geocoding formatter","user":{"login":"rafatower","id":1914276,"avatar_url":"https://avatars.githubusercontent.com/u/1914276?v=3","gravatar_id":"","url":"https://api.github.com/users/rafatower","html_url":"https://github.com/rafatower","followers_url":"https://api.github.com/users/rafatower/followers","following_url":"https://api.github.com/users/rafatower/following{/other_user}","gists_url":"https://api.github.com/users/rafatower/gists{/gist_id}","starred_url":"https://api.github.com/users/rafatower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafatower/subscriptions","organizations_url":"https://api.github.com/users/rafatower/orgs","repos_url":"https://api.github.com/users/rafatower/repos","events_url":"https://api.github.com/users/rafatower/events{/privacy}","received_events_url":"https://api.github.com/users/rafatower/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/Frontend","name":"Frontend","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"xavijam","id":132146,"avatar_url":"https://avatars.githubusercontent.com/u/132146?v=3","gravatar_id":"","url":"https://api.github.com/users/xavijam","html_url":"https://github.com/xavijam","followers_url":"https://api.github.com/users/xavijam/followers","following_url":"https://api.github.com/users/xavijam/following{/other_user}","gists_url":"https://api.github.com/users/xavijam/gists{/gist_id}","starred_url":"https://api.github.com/users/xavijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavijam/subscriptions","organizations_url":"https://api.github.com/users/xavijam/orgs","repos_url":"https://api.github.com/users/xavijam/repos","events_url":"https://api.github.com/users/xavijam/events{/privacy}","received_events_url":"https://api.github.com/users/xavijam/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/41","html_url":"https://github.com/CartoDB/cartodb/milestones/Los%20Navalmorales","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/41/labels","id":1110460,"number":41,"title":"Los Navalmorales","description":"- [ ] Import improvements - Twitter + others (@kartones)\r\n- [ ] Kepler integrated (@alonsogarciapablo)\r\n- [ ] TempWo (@saleiva)\r\n- [ ] Here Geocoder + Data-services sprint (@rtorre)\r\n- [ ] 5k users (@juanignaciosl with @jmedina)","creator":{"login":"saleiva","id":132149,"avatar_url":"https://avatars.githubusercontent.com/u/132149?v=3","gravatar_id":"","url":"https://api.github.com/users/saleiva","html_url":"https://github.com/saleiva","followers_url":"https://api.github.com/users/saleiva/followers","following_url":"https://api.github.com/users/saleiva/following{/other_user}","gists_url":"https://api.github.com/users/saleiva/gists{/gist_id}","starred_url":"https://api.github.com/users/saleiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleiva/subscriptions","organizations_url":"https://api.github.com/users/saleiva/orgs","repos_url":"https://api.github.com/users/saleiva/repos","events_url":"https://api.github.com/users/saleiva/events{/privacy}","received_events_url":"https://api.github.com/users/saleiva/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":2,"state":"open","created_at":"2015-05-14T16:05:05Z","updated_at":"2015-06-11T12:20:13Z","due_on":"2015-06-23T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-06-11T11:12:30Z","updated_at":"2015-06-11T12:35:38Z","closed_at":null,"body":"We should change the internal API definition of the params for geocoding so that we avoid unneeded parsing, transformations and **guessing** in both front and back ends.\r\n\r\nThere are limitations in the format of the `formatter` itself because it is impossible to tell apart what is what from the order of the \"atoms\" of the formatter string (street, state/province, country, additional information) despite the user is providing that information explicitly.\r\n\r\nProposal:\r\n```json\r\n{\r\n  \"input\": {\r\n    \"address\": {\r\n      \"type\": \"column\",\r\n      \"value\": \"direccion\"\r\n    },\r\n    \"province\": {\r\n      \"type\": \"column\",\r\n      \"value\": \"provincia\"\r\n    },\r\n    \"state\": {\r\n      \"type\": \"freetext\",\r\n      \"value\": \"es\"\r\n    },\r\n    \"additional\": null\r\n  }\r\n}\r\n```\r\n(we can keep the current formatter for backwards compatibility)\r\n\r\ncc/ @javisantana "},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/111117244","html_url":"https://github.com/CartoDB/cartodb/issues/4010#issuecomment-111117244","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4010","id":111117244,"user":{"login":"rafatower","id":1914276,"avatar_url":"https://avatars.githubusercontent.com/u/1914276?v=3","gravatar_id":"","url":"https://api.github.com/users/rafatower","html_url":"https://github.com/rafatower","followers_url":"https://api.github.com/users/rafatower/followers","following_url":"https://api.github.com/users/rafatower/following{/other_user}","gists_url":"https://api.github.com/users/rafatower/gists{/gist_id}","starred_url":"https://api.github.com/users/rafatower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafatower/subscriptions","organizations_url":"https://api.github.com/users/rafatower/orgs","repos_url":"https://api.github.com/users/rafatower/repos","events_url":"https://api.github.com/users/rafatower/events{/privacy}","received_events_url":"https://api.github.com/users/rafatower/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T12:35:38Z","updated_at":"2015-06-11T12:35:38Z","body":"No, it is not. It will improve accuracy."}}