CitiesAutoComplete
davidbeloo
153
Visit GitHub RepoAutocomplete

CitiesAutoComplete

Auto complete EditText for cities, using Google Places.

2015_07_26_19_39_53

Based on this great tutorial by Alex.

FYI, There is SDK from Google for places (https://developers.google.com/places/android/start), but there is no support to get only cities without street names ("The (cities) type collection instructs the Places service to return results that match locality or administrative_area_level_3. The (cities) type collection is not supported in Google Places API for Android or Google Places API for iOS.")

To run the project you only need your Google API Key.

Open https://console.developers.google.com, login and generate your own key.

Put your key in ServerParams.class under:

public static final String YOUR_PLACES_KEY = "YOUR_KEY";

Enjoy!

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT