Kotlin Google Maps AutocompleteTextView Location Example

You are currently viewing Kotlin Google Maps AutocompleteTextView Location Example

Welcome Folks I am back with another blog post. In this post we will be talking about a Kotlin Library which allows you to use a Kotlin AutoCompleteTextView Widget in Android Application. The demo of the Application is given below. All the source code of the application is given below.

 

 

 

 

Download Library

 

Download the library here

 

Add the Library in Application

 

In your Project build.gradle you must have the following

 

In your App build.gradle you must have the following

 

Get a Google Maps API Key and enabled the Google Places API for Android (Add your API Key in values):

 

Add the AutocompleteLocation into the layout:

 

Full Example Source Code

 

  1. Layout File:

 

activity_main.xml

 

 

2) Kotlin Code

 

MainActivity.kt

 

Leave a Reply