android - Google 地方信息自动填充功能需要花钱吗?
问题描述
我试图了解 Google 是否会因使用findAutocompletePredictions()
他们的 Places API 中的功能而向我收费。这是我在我的应用程序中使用的功能:
fun queryPlaces(searchText: String?) {
val request = FindAutocompletePredictionsRequest.builder()
.setSessionToken(token)
.setQuery(searchText)
.build()
placesClient.findAutocompletePredictions(request).addOnSuccessListener { response ->
searchResults = ArrayList(response.autocompletePredictions)
adapter.notifyDataSetChanged()
}.addOnFailureListener { exception ->
if (exception is ApiException) {
Log.e("searchtext", "Place not found: " + exception.statusCode)
}
}
}
我查看了他们的文档,发现有两个选项可能与我的情况相匹配:
- https://developers.google.com/places/android-sdk/usage-and-billing#ac-no-details-session
- https://developers.google.com/places/android-sdk/usage-and-billing#ac-with-details-session
其中哪一个与我的代码匹配?
解决方案
推荐阅读
- system-calls - 在 gem5 SE 模式下检测 ROI
- firebase - 部署时使 Google Cloud Function 的 Firebase 缓存失效
- python - 上下文管理器是否仅用于引发异常?
- c++ - 在 C++ 中一次从标准输入读取一个字节的快速简单的方法
- vuejs2 - Vuex 在 Ajax 查询中返回 null(第一次发送)
- r - 我如何以编程方式选择要变异的列?
- python - 尽管安装没有名为“pymongo”的模块
- mongoose - findByIdAndRemove 获取状态 404
- java - 画布背景图像仅从 netbeans 显示
- python - selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法使用 Selenium ChromeDriver Chrome 和 Python 定位元素