π Just Released: Google Places API Library for Android! ππ
Iβm excited to share my Google Places API Library built in Kotlin! π Now, developers can easily integrate Google Places autocomplete search into their Android apps with minimal setup.
π₯ Features:
β
Easy-to-use API β Just add the dependency and initialize
β
Optimized performance β Uses Coroutines for fast API calls
β
Custom AutoComplete View β Works smoothly with minimal UI code
β
JitPack Integration β Simple to include in any project
π GitHub Repository:
π
tailorshivam
/
GooglePlacesLib
Developers can easily integrate Google Places autocomplete search into their Android apps with minimal setup.
Hi π, I'm Shivam Tailor
A passionate android developer
GooglePlacesLib π
An easy-to-use Google Places API Library for Android.
π Installation
Add JitPack to settings.gradle.kts
:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Then, add the dependency:
dependencies {
implementation("com.github.tailorshivam:GooglePlacesLib:TAG")
}
π― Usage
Initialize in MainActivity.kt
:
GooglePlaces.initialize(this, "YOUR_API_KEY")
val autoCompleteView = findViewById<PlacesAutoCompleteView>(R.id.placesAutoCompleteView)
autoCompleteView.initialize("YOUR_API_KEY")
Add in activity_main.xml
:
<com.shivam.googleplaceslib.PlacesAutoCompleteView
android:id="@+id/placesAutoCompleteView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Search places..." />
- π« How to reach me tailorshivam141194@gmail.com
Connect with me:
π How to Use:
1οΈβ£ Add this to your settings.gradle.kts
:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
2οΈβ£ Add the dependency in build.gradle.kts
:
dependencies {
implementation("com.github.tailorshivam:GooglePlacesLib:1.0.1")
}
3οΈβ£ Use it in your MainActivity.kt
:
GooglePlaces.initialize(this, "YOUR_API_KEY")
val autoCompleteView = findViewById<PlacesAutoCompleteView>(R.id.placesAutoCompleteView)
autoCompleteView.initialize("YOUR_API_KEY")
β€οΈ Support & Feedback
β Star the repository on GitHub if you find it useful!
π¬ Iβd love your feedback β Let me know what features youβd like to see next!
π Letβs make Android development easier, together! #Kotlin #AndroidDevelopment #GooglePlacesAPI #OpenSource #JitPack #Android #Support
Top comments (0)