是否可以从Android和iOS应用的地方sdk实施基于会话的自动完成功能?
根据新的Google Maps框架定价,6月11日生效的自动填充请求可以分解为基于击键/会话的.
除了this reference之外,我无法找到描述实施步骤的文档.
解决方法:
会话令牌将在新版Google Places SDK for Android和Google Places SDK for iOS中提供.这些新版本在用户指南文档中公布.
Google is currently preparing new versions of the Places SDK for Android, and the Places SDK for iOS. The following section describes the changes and explains how they will affect you.
- A new Places SDK for Android will be made available as a standalone library, and will no longer be available through Google Play services; This version will not be backward-compatible with the current SDK
- A new Places SDK for iOS will be made available
It’s worth noting that several Places SDK features will be updated to reflect overall Places API changes, affecting both mobile platforms:
- Place Details (Android, iOS) request will have a new fields parameter.
- Autocomplete billing will be session-based.
In the coming months we will share more details including a timeline and appropriate lead time to migrate to the new SDK versions. These new versions will replace the current SDK versions. The current SDKs will be deprecated and will follow appropriate deprecation timelines.
来源:https://cloud.google.com/maps-platform/user-guide/product-changes/
在当前版本的Places SDK中,没有会话令牌.不幸的是,对于新版本的SDK,没有确切的ETA.希望它们可以在几个月内上市.请继续关注Google公告.
关于当前版本的Places SDK for Android和Places SDK for iOS的结算,我不确定.可能他们将免费作为已弃用的版本.我建议通过此问题与Google支持人员联系.
您还可以查看有关会话的此问题:
How long do the new Places API session tokens last?
我希望这能澄清你的疑问.
更新
新版本的Places Android SDK现已推出.你可以在这里阅读有关新版本的信息
https://developers.google.com/places/android-sdk/client-migration
请注意,之前的SDK已弃用,将于2019年7月29日关闭.
新版SDK实现了自动完成的会话令牌.
The new version of the Places SDK for Android is distributed as a static client library. Until now, the Places SDK for Android has been made available through Google Play Services.
A compatibility library is available, which enables you to switch from the deprecated Google Play Services Places library to the new static library with minimal effort.
There are all-new methods.
Field masks are now supported for methods that return place details. You can use field masks to specify which types of place data to return.
The exceptions used to report errors have been improved.
Autocomplete now supports session tokens.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。