This repository contains Kotlin extensions (KTX) for: 1. The Places SDK for Android
It enables you to use Place Search API.
In order to use the library, include the following dependency:
dependencies {
implementation 'com.github.urmichm:
places-placesearch-ktx:RELEASE_TAG'
}
If you have not included the jitpack repository in your project, add the following to your root build.gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
The result of the API call can be converted into a set of Place objects.
Such conversion accelerates the usage of Place Search and integrates the package into Place Details SDK
A demo application is contained within this repository that illustrates the use of this KTX library.
To run the demo app, you’ll have to:
local.properties
file in your root directory called (Note: this file should NOT be under version control to protect your API key) and add a single line to local.properties
that looks like PLACES_API_KEY="YOUR_API_KEY"
, where YOUR_API_KEY
is the API key you obtained in the first step. You can also take a look at the local.defaults.properties as an example.Encounter an issue while using this library?
If you find a bug or have a feature request, please file an issue. Or, if you’d like to contribute, send us a Pull Request.
For more information, check out the detailed guide on the Google Developers site.