watsonbox / ios_google_places_autocomplete

Google Places address entry for iOS (Swift)
MIT License
269 stars 72 forks source link

Parse viewport data from API response #9

Closed jormon closed 9 years ago

jormon commented 9 years ago

Builds on top of #8

Return viewport data if google results make it available.

watsonbox commented 9 years ago

Not sure about this one. There's loads of data in the response that I chose not to parse for simplicity's sake, and to avoid being dependent on the exact structure of that data. This library isn't really intended to be an object wrapper for the GPA API. I made an exception for latitude and longitude though, since they are so commonly used. Not sure about viewport data.

jormon commented 9 years ago

So your recommendation here would to instead have users parse the raw json themselves if they wanted more of that data?

watsonbox commented 9 years ago

Yep - perhaps with SwiftyJSON.