Reputation: 375
I am for the first time working with google APIs, I am bit clueless at this moment. I have some questions.
In last couple of days I have searched a lot about how to use google places/autocomplete API in iOS, I came across several wrappers and projects unfortunately all built 3 or 4 years ago. So they all are not useful for me because they have tons of errors and don't compile. So, here's the main problem: how can I show a tableview over my mapview with results when search bar detects text? Can anyone help me with this?
Thanking all of you in advance.
Upvotes: 0
Views: 394
Reputation: 10889
If you want to display a search bar and a MapView in your UI and have the search bar autocomplete results as you type, then the easiest way to do this is to use a UISearchController with a GMSAutocompleteResultsViewController from the Google Places iOS SDK.
The add a results controller section of the documentation explains how to do this with code samples.
Upvotes: 1