{"action":"closed","issue":{"url":"https://api.github.com/repos/geocoder-php/Geocoder/issues/369","labels_url":"https://api.github.com/repos/geocoder-php/Geocoder/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/geocoder-php/Geocoder/issues/369/comments","events_url":"https://api.github.com/repos/geocoder-php/Geocoder/issues/369/events","html_url":"https://github.com/geocoder-php/Geocoder/issues/369","id":50855812,"number":369,"title":"Googlemaps not always returning a bounds, use viewport?","user":{"login":"zhuston","id":1652133,"avatar_url":"https://avatars.githubusercontent.com/u/1652133?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuston","html_url":"https://github.com/zhuston","followers_url":"https://api.github.com/users/zhuston/followers","following_url":"https://api.github.com/users/zhuston/following{/other_user}","gists_url":"https://api.github.com/users/zhuston/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuston/subscriptions","organizations_url":"https://api.github.com/users/zhuston/orgs","repos_url":"https://api.github.com/users/zhuston/repos","events_url":"https://api.github.com/users/zhuston/events{/privacy}","received_events_url":"https://api.github.com/users/zhuston/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geocoder-php/Geocoder/labels/improvement","name":"improvement","color":"DDDDDD"},{"url":"https://api.github.com/repos/geocoder-php/Geocoder/labels/provider","name":"provider","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-03T16:02:13Z","updated_at":"2015-08-13T07:27:09Z","closed_at":"2015-08-13T07:27:09Z","body":"I recently discovered that Googlemaps doesn't always return a bounds but when it doesn't it returns a viewport. What would you think about the Googlemaps provider returning the viewport if the bounds does not exist? \r\n\r\nIn my use case it would be helpful as the viewport is better than nothing but I don't have a way to access the returned viewport with this library. Or if a way was added so I could access the viewport, unless it already exists and I am missing it.\r\n\r\nGoogle docs, about 1/3 of the way down outlines Results format with \"bounds\" specified as optionally returned.\r\nhttps://developers.google.com/maps/documentation/geocoding/\r\n\r\nI am not sure what causes bounds not to be returned. Here are a couple of example zip code searches that do not return a bounds.\r\n28299, 30149 or 30061\r\nhttps://maps.googleapis.com/maps/api/geocode/json?address=28299"}}