Reputation: 12499
I need to offer users a way to type an address in an UITextField
with an autocompletion functionality as user is introducing the text. I've been looking for the best way to implement this, but I'm still not sure: is it possible to get a list of street names for a certain city? Or should I being provided such information in another and custom way (service request, a file with that information...)?
My application is for iOS 7+
Thanks
Upvotes: 1
Views: 669
Reputation: 670
You can do this by using Google Places autocomplete API.This api provide you addreess that you want in list.
For More info please refer this example that help you to how to use Google Places autocomplete with your application
you can find sample code for the same on Github find Below link for this
https://github.com/chenyuan/SPGooglePlacesAutocomplete
Hope this may help you.
Upvotes: 2