/NewGooglePlacesAutocomplete

New Places Api for Android

Primary LanguageKotlin

New Google Places SDK for Android

Latest Update

According to latest update you must create and enable a billing account of Google Maps Platform in Google Cloud Console. CLICK HERE

After successful creation of billing account generate an API Key and associate it with the billing account you created.

Places SDK

The Google Play Services version of the Places SDK for Android (in Google Play Services 16.0.0) is deprecated as of January 29, 2019, and will be turned off on July 29, 2019. And if you check under the google API console, it only have the PLACES API and there is nothing like PLACES SDK FOR ANDROID anymore.

Migration guide to new places SDK client library can be found here

This repo demonstrate the use of the Google Places SDK for Android with custom auto complete adapter. For simple Google Places SDK follow this link.

Get Started

To get started, your app needs to meet two requirements:

  • Enable google places api in Google Console
  • Minimun Android SDK of 18 or higher
  • Don't forget to add your API key in the strings.xml file.

Dependencies used

Add a dependency for the new SDK client library to your app-level build.gradle:

implementation 'com.google.android.libraries.places:places:2.4.0'

Screen Shots