{"action":"created","issue":{"url":"https://api.github.com/repos/pelias/api/issues/443","repository_url":"https://api.github.com/repos/pelias/api","labels_url":"https://api.github.com/repos/pelias/api/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/pelias/api/issues/443/comments","events_url":"https://api.github.com/repos/pelias/api/issues/443/events","html_url":"https://github.com/pelias/api/pull/443","id":139731654,"number":443,"title":"Expose bbox","user":{"login":"dianashk","id":5446511,"avatar_url":"https://avatars.githubusercontent.com/u/5446511?v=3","gravatar_id":"","url":"https://api.github.com/users/dianashk","html_url":"https://github.com/dianashk","followers_url":"https://api.github.com/users/dianashk/followers","following_url":"https://api.github.com/users/dianashk/following{/other_user}","gists_url":"https://api.github.com/users/dianashk/gists{/gist_id}","starred_url":"https://api.github.com/users/dianashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianashk/subscriptions","organizations_url":"https://api.github.com/users/dianashk/orgs","repos_url":"https://api.github.com/users/dianashk/repos","events_url":"https://api.github.com/users/dianashk/events{/privacy}","received_events_url":"https://api.github.com/users/dianashk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pelias/api/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dianashk","id":5446511,"avatar_url":"https://avatars.githubusercontent.com/u/5446511?v=3","gravatar_id":"","url":"https://api.github.com/users/dianashk","html_url":"https://github.com/dianashk","followers_url":"https://api.github.com/users/dianashk/followers","following_url":"https://api.github.com/users/dianashk/following{/other_user}","gists_url":"https://api.github.com/users/dianashk/gists{/gist_id}","starred_url":"https://api.github.com/users/dianashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianashk/subscriptions","organizations_url":"https://api.github.com/users/dianashk/orgs","repos_url":"https://api.github.com/users/dianashk/repos","events_url":"https://api.github.com/users/dianashk/events{/privacy}","received_events_url":"https://api.github.com/users/dianashk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pelias/api/milestones/7","html_url":"https://github.com/pelias/api/milestones/Who's%20on%20First","labels_url":"https://api.github.com/repos/pelias/api/milestones/7/labels","id":1502968,"number":7,"title":"Who's on First","description":"","creator":{"login":"dianashk","id":5446511,"avatar_url":"https://avatars.githubusercontent.com/u/5446511?v=3","gravatar_id":"","url":"https://api.github.com/users/dianashk","html_url":"https://github.com/dianashk","followers_url":"https://api.github.com/users/dianashk/followers","following_url":"https://api.github.com/users/dianashk/following{/other_user}","gists_url":"https://api.github.com/users/dianashk/gists{/gist_id}","starred_url":"https://api.github.com/users/dianashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianashk/subscriptions","organizations_url":"https://api.github.com/users/dianashk/orgs","repos_url":"https://api.github.com/users/dianashk/repos","events_url":"https://api.github.com/users/dianashk/events{/privacy}","received_events_url":"https://api.github.com/users/dianashk/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":7,"state":"open","created_at":"2016-01-12T19:36:55Z","updated_at":"2016-03-09T23:21:06Z","due_on":"2016-01-22T05:00:00Z","closed_at":null},"comments":5,"created_at":"2016-03-09T23:20:22Z","updated_at":"2016-03-10T11:53:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pelias/api/pulls/443","html_url":"https://github.com/pelias/api/pull/443","diff_url":"https://github.com/pelias/api/pull/443.diff","patch_url":"https://github.com/pelias/api/pull/443.patch"},"body":"- [x] expose `bounding_box` property when available in results\r\n- [x] convert the `bounding_box` stored in ES as a string to an object\r\n- [x] update the FeatureCollection bounding box computation to encompass all the bounding boxes in the results, not only the centroids\r\n- [x] test stuff\r\n\r\n___\r\n:notes: **NOTE:** I have some reservations about changing the FeatureCollection bounding box to be larger than what the geometry property suggests. If users are relying on that to be the same as the generic geojson they see elsewhere, it could be really confusing. They might think they are missing data. I think for now we can keep it this way and document **REALLY** well. \r\n___\r\nCloses #398 "},"comment":{"url":"https://api.github.com/repos/pelias/api/issues/comments/194810836","html_url":"https://github.com/pelias/api/pull/443#issuecomment-194810836","issue_url":"https://api.github.com/repos/pelias/api/issues/443","id":194810836,"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},"created_at":"2016-03-10T11:53:57Z","updated_at":"2016-03-10T11:53:57Z","body":"Because it can be one of many features, as opposed to the geometry. \r\n\r\n> To include information on the coordinate range for geometries, features, or feature collections, a GeoJSON object may have a member named \"bbox\""}}