CitiesAutoComplete

Additional

Language
Java
Version
N/A
Created
Jul 26, 2015
Updated
Jul 28, 2015 (Retired)
Owner
David (davidbeloo)
Contributor
David (davidbeloo)
1
Activity
Badge
Generate
Download
Source code
APK file

Promotion

CitiesAutoComplete

Auto complete EditText for cities, using Google Places.

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!