Search code examples
google-mapsios4google-apigoogle-places-api

Implementing google places autocomplete API in iOS


This is my first time that I am using Google API. I am having problem implementing Google places auto-complete API in my project. I am using the Google developers link to Google Places Autocomplete API as reference.

I am able to implement the this tutorial correctly, however, I am unable to implement this in iOS.

Can someone please direct me to some tutorial in this regard? Basically I want to do the following:

When the user enters a text in UITextField,

  • the URL string gets the text (which I have done successfully),
  • a filtered array is populated
  • the elements of the array are shown in a drop-down menu type thing just like in auto-completion link above.

Any help is in this regard will be highly appreciated. I am stuck on this problem for the past week.


Solution

  • Check out https://github.com/spoletto/SPGooglePlacesAutocomplete

    It's an objective-c wrapper for the Google Places Autocomplete API.

    Good Luck!